diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-12 18:09:26 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-12 18:09:26 +0000 |
commit | 2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch) | |
tree | 6893f7992748817b64ec66947adc2ca40e13fb8e /sysklogd/klogd.c | |
parent | dac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff) | |
download | busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.bz2 busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip |
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 3 |
1 files changed, 1 insertions, 2 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); |