diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/klogd.c | 3 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index cca6f5671..fc0ed3037 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -51,7 +51,8 @@ int klogd_main(int argc, char **argv) if (!(option_mask32 & OPT_FOREGROUND)) { #ifdef BB_NOMMU - vfork_daemon_rexec(0, 1, argc, argv, "-n"); + if (!re_execed) + vfork_daemon_rexec(0, 1, argv); #else bb_daemonize(); #endif diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 2a2b20c8b..437212372 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -643,7 +643,8 @@ int syslogd_main(int argc, char **argv) if (!(option_mask32 & OPT_nofork)) { #ifdef BB_NOMMU - vfork_daemon_rexec(0, 1, argc, argv, "-n"); + if (!re_execed) + vfork_daemon_rexec(0, 1, argv); #else bb_daemonize(); #endif |