diff toys/pending/klogd.c @ 1391:6a06541c090c draft

Use libc daemon() instead of pending daemonize.
author Rob Landley <rob@landley.net>
date Thu, 17 Jul 2014 22:50:49 -0500
parents 8b1814e4c987
children
line wrap: on
line diff
--- a/toys/pending/klogd.c	Wed Jul 16 20:43:58 2014 -0500
+++ b/toys/pending/klogd.c	Thu Jul 17 22:50:49 2014 -0500
@@ -68,7 +68,7 @@
 
   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");