diff options
| author | Anthony Sorace <a@9srv.net> | 2021-04-22 00:16:10 -0700 |
|---|---|---|
| committer | Dan Cross <crossd@gmail.com> | 2021-04-22 08:44:27 -0400 |
| commit | 70cc6e5ba7798b315c3fb3aae19620a01604a459 (patch) | |
| tree | 5ef077b4cd6afcc09548efdd0dc28eabedd198aa /src/libthread/daemonize.c | |
| parent | 93a25a0f974e659e24767a13790ea4e87aabef22 (diff) | |
libthread: use setpgid instead of setpgrp
Diffstat (limited to 'src/libthread/daemonize.c')
| -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"); |