diff options
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 67324116d..c554536c8 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -632,11 +632,12 @@ extern int syslogd_main(int argc, char **argv) | |||
632 | 632 | ||
633 | umask(0); | 633 | umask(0); |
634 | 634 | ||
635 | #if ! defined(__uClinux__) | ||
636 | if ((doFork == TRUE) && (daemon(0, 1) < 0)) { | 635 | if ((doFork == TRUE) && (daemon(0, 1) < 0)) { |
637 | bb_perror_msg_and_die("daemon"); | 636 | bb_perror_msg_and_die("daemon"); |
638 | } | 637 | #if ! defined(__uClinux__) |
638 | vfork_daemon_rexec(argc, argv, "-n"); | ||
639 | #endif | 639 | #endif |
640 | } | ||
640 | doSyslogd(); | 641 | doSyslogd(); |
641 | 642 | ||
642 | return EXIT_SUCCESS; | 643 | return EXIT_SUCCESS; |