diff toys/pending/dhcpd.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 0ecfaa7022e8
children f2cac60ab2d3
line wrap: on
line diff
--- a/toys/pending/dhcpd.c	Wed Jul 16 20:43:58 2014 -0500
+++ b/toys/pending/dhcpd.c	Thu Jul 17 22:50:49 2014 -0500
@@ -1086,7 +1086,7 @@
 
   infomode = LOG_CONSOLE;
   if (!(flag_chk(FLAG_f))) {
-    daemonize();
+    daemon(0,0);
     infomode = LOG_SILENT;
   }
   if (flag_chk(FLAG_S)) {