diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/klogd.c | 3 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 51b01430e..6dc5457af 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c | |||
@@ -121,8 +121,7 @@ int klogd_main(int argc, char **argv) | |||
121 | #if defined(__uClinux__) | 121 | #if defined(__uClinux__) |
122 | vfork_daemon_rexec(0, 1, argc, argv, "-n"); | 122 | vfork_daemon_rexec(0, 1, argc, argv, "-n"); |
123 | #else /* __uClinux__ */ | 123 | #else /* __uClinux__ */ |
124 | if (daemon(0, 1) < 0) | 124 | bb_xdaemon(0, 1); |
125 | bb_perror_msg_and_die("daemon"); | ||
126 | #endif /* __uClinux__ */ | 125 | #endif /* __uClinux__ */ |
127 | } | 126 | } |
128 | doKlogd(console_log_level); | 127 | doKlogd(console_log_level); |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index b43c72d66..0fcbb48bc 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -673,8 +673,7 @@ int syslogd_main(int argc, char **argv) | |||
673 | #if defined(__uClinux__) | 673 | #if defined(__uClinux__) |
674 | vfork_daemon_rexec(0, 1, argc, argv, "-n"); | 674 | vfork_daemon_rexec(0, 1, argc, argv, "-n"); |
675 | #else /* __uClinux__ */ | 675 | #else /* __uClinux__ */ |
676 | if(daemon(0, 1) < 0) | 676 | bb_xdaemon(0, 1); |
677 | bb_perror_msg_and_die("daemon"); | ||
678 | #endif /* __uClinux__ */ | 677 | #endif /* __uClinux__ */ |
679 | } | 678 | } |
680 | doSyslogd(); | 679 | doSyslogd(); |