tlibthread: use setpgid instead of setpgrp - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 70cc6e5ba7798b315c3fb3aae19620a01604a459
(DIR) parent 93a25a0f974e659e24767a13790ea4e87aabef22
(HTM) Author: Anthony Sorace <a@9srv.net>
Date: Thu, 22 Apr 2021 00:16:10 -0700
libthread: use setpgid instead of setpgrp
Diffstat:
M src/libthread/daemonize.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/src/libthread/daemonize.c b/src/libthread/daemonize.c
t@@ -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");