diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-14 21:19:51 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-03-14 21:19:51 +0000 |
commit | b4518d79cc80e7ea0f4e53345ca29afa21e4f0f3 (patch) | |
tree | 85ec86af1c7ab7c8b77b6848524b8fdb07e97eb6 /src/supervision/s6-supervise.c | |
parent | 398f9684624eb00075af938730cad805d7bdebfd (diff) | |
download | s6-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?
Diffstat (limited to 'src/supervision/s6-supervise.c')
-rw-r--r-- | src/supervision/s6-supervise.c | 2 |
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 ; } |