From a9b119833ad2475cb5ce4b785d2cb040e503a45f Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 15 Aug 2012 17:26:54 -0700 Subject: [PATCH] Actually work around https://github.com/fish-shell/fish-shell/issues/278 --- signal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signal.cpp b/signal.cpp index bbe462fe7..e329cecd2 100644 --- a/signal.cpp +++ b/signal.cpp @@ -635,10 +635,10 @@ void get_signals_with_handlers(sigset_t *set) { /* Don't include SIGTTIN or SIGTTOU until we figure out how to set the controlling terminal in POSIX_SPAWN */ #ifdef SIGTTIN - if (i == SIGTTIN) continue; + if (lookup[i].signal == SIGTTIN) continue; #endif #ifdef SIGTTOU - if (i == SIGTTOU) continue; + if (lookup[i].signal == SIGTTOU) continue; #endif struct sigaction act = {};