diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-28 12:07:36 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-28 12:07:36 +0000 |
| commit | dcbf42230f1ed27451d428ac3e6e97c85202d7c7 (patch) | |
| tree | a7b6362531a134f1a10e01c2bec29584786c6422 /src | |
| parent | e296c0405b813f4d19ae7efaf6eb1b4117b1e333 (diff) | |
| download | s6-dcbf42230f1ed27451d428ac3e6e97c85202d7c7.tar.gz | |
s6-setsid bugfix: only check ctty when actually calling tcsetpgrp
Diffstat (limited to 'src')
| -rw-r--r-- | src/daemontools-extras/s6-setsid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemontools-extras/s6-setsid.c b/src/daemontools-extras/s6-setsid.c index 21662d0..144bbb6 100644 --- a/src/daemontools-extras/s6-setsid.c +++ b/src/daemontools-extras/s6-setsid.c @@ -60,7 +60,7 @@ int main (int argc, char const *const *argv) { if (!uint0_scan(wgola[GOLA_CTTY], &ctty)) dieusage() ; } - else if (wgolb & (GOLB_PGRP | GOLB_FG)) + else if (wgolb & GOLB_PGRP & GOLB_FG) { int fd = openc_read("/dev/tty") ; if (fd == -1) strerr_diefu2sys(111, "open ", "/dev/tty") ; |
