libthread: use setpgid instead of setpgrp
This commit is contained in:
committed by
Dan Cross
parent
93a25a0f97
commit
70cc6e5ba7
@@ -106,7 +106,7 @@ _threadsetupdaemonize(void)
|
|||||||
* Put it in its own process group so that we don't get a SIGHUP
|
* Put it in its own process group so that we don't get a SIGHUP
|
||||||
* when the parent exits.
|
* when the parent exits.
|
||||||
*/
|
*/
|
||||||
setpgrp();
|
setpgid(0, 0);
|
||||||
|
|
||||||
if(pipe(p) < 0)
|
if(pipe(p) < 0)
|
||||||
sysfatal("passer pipe: %r");
|
sysfatal("passer pipe: %r");
|
||||||
|
|||||||
Reference in New Issue
Block a user