aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/usage.h3
-rw-r--r--networking/inetd.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/include/usage.h b/include/usage.h
index dad6078cd..5d7c36551 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1193,10 +1193,11 @@
1193 "\t-f\tforce de/configuration" 1193 "\t-f\tforce de/configuration"
1194 1194
1195#define inetd_trivial_usage \ 1195#define inetd_trivial_usage \
1196 "[-q len] [conf]" 1196 "[-f] [-q len] [conf]"
1197#define inetd_full_usage \ 1197#define inetd_full_usage \
1198 "Listens for network connections and launches programs\n\n" \ 1198 "Listens for network connections and launches programs\n\n" \
1199 "Option:\n" \ 1199 "Option:\n" \
1200 "\t-f\tRun as a foreground progress\n" \
1200 "\t-q\tSets the size of the socket listen queue to\n" \ 1201 "\t-q\tSets the size of the socket listen queue to\n" \
1201 "\t\tthe specified value. Default is 128" 1202 "\t\tthe specified value. Default is 128"
1202 1203
diff --git a/networking/inetd.c b/networking/inetd.c
index c540a8578..0604b14bf 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -758,17 +758,14 @@ extern int inetd_main(int argc, char *argv[])
758 LastArg = environ[-1] + strlen(environ[-1]); 758 LastArg = environ[-1] + strlen(environ[-1]);
759#endif 759#endif
760 760
761#if defined(__uClinux__)
762 opt = bb_getopt_ulflags(argc, argv, "q:f", &sq); 761 opt = bb_getopt_ulflags(argc, argv, "q:f", &sq);
763 if (!(opt & 2)) { 762 if (!(opt & 2)) {
764 daemon(0, 0); 763 daemon(0, 0);
764#if defined(__uClinux__)
765 /* reexec for vfork() do continue parent */ 765 /* reexec for vfork() do continue parent */
766 vfork_daemon_rexec(argc, argv, "-f"); 766 vfork_daemon_rexec(argc, argv, "-f");
767 }
768#else
769 opt = bb_getopt_ulflags(argc, argv, "q:", &sq);
770 daemon(0, 0);
771#endif /* uClinux */ 767#endif /* uClinux */
768 }
772 769
773 if(opt & 1) { 770 if(opt & 1) {
774 global_queuelen = atoi(sq); 771 global_queuelen = atoi(sq);