commit b4518d79cc80e7ea0f4e53345ca29afa21e4f0f3
parent 398f9684624eb00075af938730cad805d7bdebfd
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Tue, 14 Mar 2017 21:19:51 +0000
Change setpgrp() to setpgid(0, 0) because lolBSD don't have a standard setpgrp().
How the fuck are the BSDs even still alive?
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
@@ -207,7 +207,7 @@ static int maybesetsid (void)
{
if (r == 8 && buf[7] == '\n') buf[--r] = 0 ;
if (r == 7 && !strncasecmp(buf, "setpgrp", 7))
- setpgrp() ;
+ setpgid(0, 0) ;
}
return 1 ;
}