tlibthread: use setpgid instead of setpgrp - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 70cc6e5ba7798b315c3fb3aae19620a01604a459 | |
parent 93a25a0f974e659e24767a13790ea4e87aabef22 | |
Author: Anthony Sorace | |
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(-) --- | |
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"); |