aboutsummaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index c9c7b3a7c..8807bbedc 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -353,12 +353,7 @@ int dnsd_main(int argc, char **argv)
353 } 353 }
354 354
355 if (OPT_daemon) { 355 if (OPT_daemon) {
356#ifdef BB_NOMMU 356 bb_daemonize_or_rexec(DAEMON_CLOSE_EXTRA_FDS, argv);
357 if (!re_execed)
358 vfork_daemon_rexec(1, 0, argv);
359#else
360 xdaemon(1, 0);
361#endif
362 openlog(applet_name, LOG_PID, LOG_DAEMON); 357 openlog(applet_name, LOG_PID, LOG_DAEMON);
363 logmode = LOGMODE_SYSLOG; 358 logmode = LOGMODE_SYSLOG;
364 } 359 }