diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-09-29 08:59:31 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-09-29 08:59:31 -0700 |
commit | 60e31a45b0c015d42e9dc8ca2c991930c3f7fd66 (patch) | |
tree | a9718b9eb5e1041800fc7f4706bc7d3dbcbcf0ee /Src/exec.c | |
parent | 7cabee52d8132fed31767392540ae67bac36377e (diff) | |
download | zsh-60e31a45b0c015d42e9dc8ca2c991930c3f7fd66.tar.gz zsh-60e31a45b0c015d42e9dc8ca2c991930c3f7fd66.tar.xz zsh-60e31a45b0c015d42e9dc8ca2c991930c3f7fd66.zip |
33268: interactive shells treat SIGPIPE like SIGHUP if and only if SHTTY is disconnected
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index fb2739acc..fbd309580 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1005,6 +1005,8 @@ entersubsh(int flags) signal_default(SIGTERM); if (!(sigtrapped[SIGINT] & ZSIG_IGNORED)) signal_default(SIGINT); + if (!(sigtrapped[SIGPIPE])) + signal_default(SIGPIPE); } if (!(sigtrapped[SIGQUIT] & ZSIG_IGNORED)) signal_default(SIGQUIT); |