aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/process.c b/process.c
index 660c2c7314..6f3fc235f2 100644
--- a/process.c
+++ b/process.c
@@ -3502,8 +3502,12 @@ disable_child_handler_fork_child(struct child_handler_disabler_state *old, char
for (sig = 1; sig < NSIG; sig++) {
int reset = 0;
#ifdef SIGPIPE
- if (sig == SIGPIPE)
+ if (sig == SIGPIPE) {
reset = 1;
+#ifndef POSIX_SIGNAL
+ handler = SIG_DFL;
+#endif
+ }
#endif
if (!reset) {
#ifdef POSIX_SIGNAL