From 70cc6e5ba7798b315c3fb3aae19620a01604a459 Mon Sep 17 00:00:00 2001 From: Anthony Sorace Date: Thu, 22 Apr 2021 00:16:10 -0700 Subject: [PATCH] libthread: use setpgid instead of setpgrp --- src/libthread/daemonize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libthread/daemonize.c b/src/libthread/daemonize.c index 29929068..89efaf5d 100644 --- a/src/libthread/daemonize.c +++ b/src/libthread/daemonize.c @@ -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");