From 7ffc5208a82cd7339c125956a9702ac08c0ff2f4 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 01:37:18 +0000 Subject: use threaddaemonize --- src/cmd/plumb/plumber.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/cmd/plumb') 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); -- cgit v1.2.3