Commit Diff


commit - 93a25a0f974e659e24767a13790ea4e87aabef22
commit + 70cc6e5ba7798b315c3fb3aae19620a01604a459
blob - 299290688060cdabf11a8a74800aeb99fb2b98fa
blob + 89efaf5da9c3f7c27849f285ed835f87e8154779
--- src/libthread/daemonize.c
+++ 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");