summaryrefslogtreecommitdiff
path: root/sig.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2012-04-09 09:59:49 -0400
committerChet Ramey <chet.ramey@case.edu>2012-04-09 09:59:49 -0400
commit278286c99adbe62dbb7e3c14448d5a1d794ed8a0 (patch)
tree16f6e6a0bc16f79127afeacd12494750360b70dc /sig.c
parente73012f12c908aa39cfe9b95347c8ee6cf85dd76 (diff)
downloadbash-278286c99adbe62dbb7e3c14448d5a1d794ed8a0.tar.gz
commit bash-20120309 snapshot
Diffstat (limited to 'sig.c')
-rw-r--r--sig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sig.c b/sig.c
index f46e5219..a93a2e8c 100644
--- a/sig.c
+++ b/sig.c
@@ -674,8 +674,10 @@ set_signal_handler (sig, handler)
/* XXX - bash-4.2 */
/* We don't want a child death to interrupt interruptible system calls, even
if we take the time to reap children */
+#if defined (SIGCHLD)
if (sig == SIGCHLD)
act.sa_flags |= SA_RESTART; /* XXX */
+#endif
sigemptyset (&act.sa_mask);
sigemptyset (&oact.sa_mask);