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

@@ -353,12 +353,7 @@ int dnsd_main(int argc, char **argv)
}
if (OPT_daemon) {
#ifdef BB_NOMMU
if (!re_execed)
vfork_daemon_rexec(1, 0, argv);
#else
xdaemon(1, 0);
#endif
bb_daemonize_or_rexec(DAEMON_CLOSE_EXTRA_FDS, argv);
openlog(applet_name, LOG_PID, LOG_DAEMON);
logmode = LOGMODE_SYSLOG;
}