diff options
author | Paul Fox | 2005-08-01 19:39:47 +0000 |
---|---|---|
committer | Paul Fox | 2005-08-01 19:39:47 +0000 |
commit | b8317536769e69fe91579d042ba3a3c114ce7d66 (patch) | |
tree | e9c5b28bf8689091edc62a1f8de54ed31ffb2463 /networking | |
parent | 156dc41cbc5f6d063ee641d4bb18055f4ae1e3f5 (diff) | |
download | busybox-b8317536769e69fe91579d042ba3a3c114ce7d66.zip busybox-b8317536769e69fe91579d042ba3a3c114ce7d66.tar.gz |
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.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index c540a85..0604b14 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -758,17 +758,14 @@ extern int inetd_main(int argc, char *argv[]) LastArg = environ[-1] + strlen(environ[-1]); #endif -#if defined(__uClinux__) opt = bb_getopt_ulflags(argc, argv, "q:f", &sq); if (!(opt & 2)) { daemon(0, 0); +#if defined(__uClinux__) /* reexec for vfork() do continue parent */ vfork_daemon_rexec(argc, argv, "-f"); - } -#else - opt = bb_getopt_ulflags(argc, argv, "q:", &sq); - daemon(0, 0); #endif /* uClinux */ + } if(opt & 1) { global_queuelen = atoi(sq); |