move everything to new NOMMU helpers, except udhcp

This commit is contained in:
Denis Vlasenko
2007-03-26 13:20:54 +00:00
parent bb7fcb4229
commit 5a142025d3
11 changed files with 40 additions and 102 deletions

View File

@@ -50,12 +50,7 @@ int klogd_main(int argc, char **argv)
}
if (!(option_mask32 & OPT_FOREGROUND)) {
#ifdef BB_NOMMU
if (!re_execed)
vfork_daemon_rexec(0, 1, argv);
#else
bb_daemonize();
#endif
bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
}
openlog("kernel", 0, LOG_KERN);

View File

@@ -642,12 +642,7 @@ int syslogd_main(int argc, char **argv)
}
if (!(option_mask32 & OPT_nofork)) {
#ifdef BB_NOMMU
if (!re_execed)
vfork_daemon_rexec(0, 1, argv);
#else
bb_daemonize();
#endif
bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
}
umask(0);
do_syslogd();