openbsd-ports/plan9/plan9port/patches/patch-src_libthread_daemonize_c
jsg 52802352c7 update plan9port to a newer snapshot
fixes clang 11 / default -fno-common build
ok gsoares@ kn@
2021-01-30 12:51:34 +00:00

15 lines
408 B
Plaintext

$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");