aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/daemontools-extras/s6-setsid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemontools-extras/s6-setsid.c b/src/daemontools-extras/s6-setsid.c
index 7a5888c..3c12b95 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) == 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") ;