diff options
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index c132e06..df3a668 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -147,11 +147,12 @@ extern int klogd_main(int argc, char **argv) } if (doFork) { +#if defined(__uClinux__) + vfork_daemon_rexec(0, 1, argc, argv, "-n"); +#else /* __uClinux__ */ if (daemon(0, 1) < 0) bb_perror_msg_and_die("daemon"); -#if defined(__uClinux__) - vfork_daemon_rexec(argc, argv, "-n"); -#endif +#endif /* __uClinux__ */ } doKlogd(console_log_level); |