aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plumb/plumber.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/plumb/plumber.c')
-rw-r--r--src/cmd/plumb/plumber.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/cmd/plumb/plumber.c b/src/cmd/plumb/plumber.c
index bf7afa3f..6d1d9d17 100644
--- a/src/cmd/plumb/plumber.c
+++ b/src/cmd/plumb/plumber.c
@@ -69,19 +69,8 @@ threadmain(int argc, char *argv[])
rules = readrules(plumbfile, fd);
close(fd);
- /*
- * Start all processes and threads from other proc
- * so we (main pid) can return to user.
- */
if(dofork)
- switch(fork()){
- case -1:
- sysfatal("fork: %r");
- case 0:
- break;
- default:
- _exit(0);
- }
+ threaddaemonize();
printerrors = 0;
makeports(rules);