diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-28 16:20:12 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-03-28 16:20:12 +0000 |
| commit | eaa90b34e3641f6a30a3c951f6c67215383f3c0c (patch) | |
| tree | 9f519b6a28b16de3dae32a6441714df42e3992af | |
| parent | dcbf42230f1ed27451d428ac3e6e97c85202d7c7 (diff) | |
| download | s6-eaa90b34e3641f6a30a3c951f6c67215383f3c0c.tar.gz | |
Booleans are hard
| -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 144bbb6..7a5888c 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) == GOLB_PGRP | GOLB_FG) { int fd = openc_read("/dev/tty") ; if (fd == -1) strerr_diefu2sys(111, "open ", "/dev/tty") ; |
