libthread: use setpgid instead of setpgrp
This commit is contained in:
parent
93a25a0f97
commit
70cc6e5ba7
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue