From 1664e2218855e6510513133083353565a9f6c463 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 28 Oct 2025 22:44:11 +0000 Subject: s6-supervise: try getsid instead of getpgid, see what OpenBSD says --- src/supervision/s6-supervise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index 8567bb1..ca44fc8 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -388,9 +388,9 @@ static void trystart (void) fd_close(notifyp[1]) ; notifyfd = notifyp[0] ; } - status.pgid = getpgid(status.pid) ; + status.pgid = getsid(status.pid) ; if (status.pgid == -1) - strerr_warnwu1sys("getpgid (process group control commands will have no effect)") ; + strerr_warnwu1sys("getsid (process group control commands will have no effect)") ; settimeout_infinite() ; nextstart = tain_zero ; state = UP ; -- cgit v1.3.1