summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 47de8735..4ec5d55f 100644
--- a/misc.c
+++ b/misc.c
@@ -112,6 +112,10 @@ mysignal(int sig, mysig_t act)
if (sig == SIGCHLD)
sa.sa_flags |= SA_RESTART;
#endif
+#ifdef SA_INTERRUPT
+ if (sig == SIGCHLD)
+ sa.sa_flags |= SA_INTERRUPT;
+#endif
sa.sa_handler = act;
if (sigaction(sig, &sa, NULL) == -1)
return (mysig_t) -1;