From b4518d79cc80e7ea0f4e53345ca29afa21e4f0f3 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 14 Mar 2017 21:19:51 +0000 Subject: Change setpgrp() to setpgid(0, 0) because lolBSD don't have a standard setpgrp(). How the fuck are the BSDs even still alive? --- src/supervision/s6-supervise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ; } -- cgit v1.2.3