chiark / gitweb /
Add innduct-forall
[innduct.git] / duct.c
diff --git a/duct.c b/duct.c
index 2ea2d4afbd59d80313af2763efb5bef517a0b9c3..55b98772da9d9f533ead5e1a4754add0ad9ef7b9 100644 (file)
--- a/duct.c
+++ b/duct.c
@@ -556,13 +556,13 @@ int main(int argc, char **argv) {
     dup2(null,2);
     xclose(null, "/dev/null original fd",0);
 
-    pid_t child1= xfork("daemonise first fork");
+    pid_t child1= xfork_bare("daemonise first fork");
     if (child1) _exit(0);
 
     pid_t sid= setsid();
     if (sid == -1) sysdie("setsid failed");
 
-    pid_t child2= xfork("daemonise second fork");
+    pid_t child2= xfork_bare("daemonise second fork");
     if (child2) _exit(0);
   }