aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/supervision/s6-supervise.c4
1 files changed, 2 insertions, 2 deletions
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 ;