diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-15 17:25:33 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-15 17:25:33 -0700 |
commit | c5ffe8a9748c1cc2a44fc573ac6f8e752f9f8f72 (patch) | |
tree | 61087eac500e12c1444c7a7fe9d2135dff4a547e /signal.cpp | |
parent | df1b4e1f212d09a780ed7de2d3d53b4ae175f3e0 (diff) |
Temporary workaround for SIGTIN and SIGTOU unhappiness with posix_spawn
Diffstat (limited to 'signal.cpp')
-rw-r--r-- | signal.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -633,6 +633,14 @@ void get_signals_with_handlers(sigset_t *set) sigemptyset(set); for( int i=0; lookup[i].desc ; i++ ) { + /* 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; +#endif +#ifdef SIGTTOU + if (i == SIGTTOU) continue; +#endif + struct sigaction act = {}; sigaction(lookup[i].signal, NULL, &act); if (act.sa_handler != SIG_DFL) |