summaryrefslogtreecommitdiff
path: root/sysklogd/klogd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-04-12 18:09:26 +0000
committerBernhard Reutner-Fischer2006-04-12 18:09:26 +0000
commit2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch)
tree6893f7992748817b64ec66947adc2ca40e13fb8e /sysklogd/klogd.c
parentdac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff)
downloadbusybox-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip
busybox-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r--sysklogd/klogd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 51b0143..6dc5457 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -121,8 +121,7 @@ int klogd_main(int argc, char **argv)
#if defined(__uClinux__)
vfork_daemon_rexec(0, 1, argc, argv, "-n");
#else /* __uClinux__ */
- if (daemon(0, 1) < 0)
- bb_perror_msg_and_die("daemon");
+ bb_xdaemon(0, 1);
#endif /* __uClinux__ */
}
doKlogd(console_log_level);