diff options
Diffstat (limited to 'src/libthread')
| -rw-r--r-- | src/libthread/daemonize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/daemonize.c b/src/libthread/daemonize.c index 29929068..89efaf5d 100644 --- a/src/libthread/daemonize.c +++ b/src/libthread/daemonize.c @@ -106,7 +106,7 @@ _threadsetupdaemonize(void) * Put it in its own process group so that we don't get a SIGHUP * when the parent exits. */ - setpgrp(); + setpgid(0, 0); if(pipe(p) < 0) sysfatal("passer pipe: %r"); |
