diff options
author | pgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-08-01 19:39:47 +0000 |
---|---|---|
committer | pgf <pgf@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-08-01 19:39:47 +0000 |
commit | 0a9edffaeb076e664a74f1710ad3d6702759c264 (patch) | |
tree | e9c5b28bf8689091edc62a1f8de54ed31ffb2463 /networking | |
parent | ef4aaa23ad977961c2b8abc53512164314bff15e (diff) | |
download | busybox-w32-0a9edffaeb076e664a74f1710ad3d6702759c264.tar.gz busybox-w32-0a9edffaeb076e664a74f1710ad3d6702759c264.tar.bz2 busybox-w32-0a9edffaeb076e664a74f1710ad3d6702759c264.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.
git-svn-id: svn://busybox.net/trunk/busybox@11010 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r-- | networking/inetd.c | 7 |
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); |