aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorPaul Fox <pgf@brightstareng.com>2005-08-01 19:39:47 +0000
committerPaul Fox <pgf@brightstareng.com>2005-08-01 19:39:47 +0000
commitb8317536769e69fe91579d042ba3a3c114ce7d66 (patch)
treee9c5b28bf8689091edc62a1f8de54ed31ffb2463 /networking
parent156dc41cbc5f6d063ee641d4bb18055f4ae1e3f5 (diff)
downloadbusybox-w32-b8317536769e69fe91579d042ba3a3c114ce7d66.tar.gz
busybox-w32-b8317536769e69fe91579d042ba3a3c114ce7d66.tar.bz2
busybox-w32-b8317536769e69fe91579d042ba3a3c114ce7d66.zip
commiting:
0000073: Add option to inetd applet to run in foreground this option was already there for uclinux -- this just exposes it in the normal case as well.
Diffstat (limited to 'networking')
-rw-r--r--networking/inetd.c7
1 files changed, 2 insertions, 5 deletions
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);