commit 70cc6e5ba7798b315c3fb3aae19620a01604a459
parent 93a25a0f974e659e24767a13790ea4e87aabef22
Author: Anthony Sorace <a@9srv.net>
Date: Thu, 22 Apr 2021 00:16:10 -0700
libthread: use setpgid instead of setpgrp
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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");