summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-14 21:19:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-14 21:19:51 +0000
commitb4518d79cc80e7ea0f4e53345ca29afa21e4f0f3 (patch)
tree85ec86af1c7ab7c8b77b6848524b8fdb07e97eb6
parent398f9684624eb00075af938730cad805d7bdebfd (diff)
downloads6-b4518d79cc80e7ea0f4e53345ca29afa21e4f0f3.tar.xz
Change setpgrp() to setpgid(0, 0) because lolBSD don't have a standard setpgrp().
How the fuck are the BSDs even still alive?
-rw-r--r--src/supervision/s6-supervise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index ce74cb4..8bb55c8 100644
--- 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 ;
}