libthread: use setpgid instead of setpgrp

This commit is contained in:
Anthony Sorace 2021-04-22 00:16:10 -07:00 committed by Dan Cross
parent 93a25a0f97
commit 70cc6e5ba7

View file

@ -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");