diff options
author | rsc <devnull@localhost> | 2004-12-28 01:37:18 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-28 01:37:18 +0000 |
commit | 7ffc5208a82cd7339c125956a9702ac08c0ff2f4 (patch) | |
tree | c44cb9750f5f8c77941c9d9090e1058c6f47ebf4 /src/cmd/plumb | |
parent | 96d6b19dcd4f359c3fa8eefcb8615082c840e184 (diff) | |
download | plan9port-7ffc5208a82cd7339c125956a9702ac08c0ff2f4.tar.gz plan9port-7ffc5208a82cd7339c125956a9702ac08c0ff2f4.tar.bz2 plan9port-7ffc5208a82cd7339c125956a9702ac08c0ff2f4.zip |
use threaddaemonize
Diffstat (limited to 'src/cmd/plumb')
-rw-r--r-- | src/cmd/plumb/plumber.c | 13 |
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); |