openbsd-ports/plan9/plan9port/patches/patch-src_libthread_daemonize_c

15 lines
408 B
Plaintext
Raw Normal View History

$OpenBSD: patch-src_libthread_daemonize_c,v 1.1 2021/01/30 12:51:34 jsg Exp $
Index: src/libthread/daemonize.c
--- src/libthread/daemonize.c.orig
+++ 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");