- s/defined(__uClinux__)/BB_NOMMU/

This needs a second pass to:
+ add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag)
+ eventually globally export argc and argv, so we don't need to pass it to
  bb_daemon().
This commit is contained in:
Bernhard Reutner-Fischer
2006-05-31 10:19:51 +00:00
parent 507cd755a4
commit c418d482ba
7 changed files with 19 additions and 19 deletions

View File

@ -1309,12 +1309,12 @@ inetd_main (int argc, char *argv[])
bb_error_msg_and_die ("non-root must specify a config file");
if (!(opt & 2)) {
#if defined(__uClinux__)
#ifdef BB_NOMMU
/* reexec for vfork() do continue parent */
vfork_daemon_rexec (0, 0, argc, argv, "-f");
#else
daemon (0, 0); /* bb_xdaemon? */
#endif /* uClinux */
bb_xdaemon (0, 0);
#endif
} else {
setsid ();
}