diff options
author | Rob Landley <rob@landley.net> | 2014-07-17 22:50:49 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-07-17 22:50:49 -0500 |
commit | c880061f511e85d55afe3966f5eda0df7c3ebb56 (patch) | |
tree | f6fedbd6dbe1f819bfa63210eb61b25ca6476ef6 /toys/pending/klogd.c | |
parent | fc7bc38af05fc882472d310a0b68648ed990ef2d (diff) | |
download | toybox-c880061f511e85d55afe3966f5eda0df7c3ebb56.tar.gz |
Use libc daemon() instead of pending daemonize.
Diffstat (limited to 'toys/pending/klogd.c')
-rw-r--r-- | toys/pending/klogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/klogd.c b/toys/pending/klogd.c index 54abedff..2c842889 100644 --- a/toys/pending/klogd.c +++ b/toys/pending/klogd.c @@ -68,7 +68,7 @@ void klogd_main(void) sigatexit(handle_signal); if (toys.optflags & FLAG_c) set_log_level(TT.level); //set log level - if (!(toys.optflags & FLAG_n)) daemonize(); //Make it daemon + if (!(toys.optflags & FLAG_n)) daemon(0, 0); //Make it daemon if (CFG_KLOGD_SOURCE_RING_BUFFER) { syslog(LOG_NOTICE, "KLOGD: started with Kernel ring buffer as log source\n"); |