From 60e31a45b0c015d42e9dc8ca2c991930c3f7fd66 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 29 Sep 2014 08:59:31 -0700 Subject: 33268: interactive shells treat SIGPIPE like SIGHUP if and only if SHTTY is disconnected --- Src/exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/exec.c') 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); -- cgit v1.2.3