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 47de8735d..4ec5d55ff 100644
--- a/misc.c
+++ b/misc.c
@@ -112,6 +112,10 @@ mysignal(int sig, mysig_t act)
112 if (sig == SIGCHLD) 112 if (sig == SIGCHLD)
113 sa.sa_flags |= SA_RESTART; 113 sa.sa_flags |= SA_RESTART;
114#endif 114#endif
115#ifdef SA_INTERRUPT
116 if (sig == SIGCHLD)
117 sa.sa_flags |= SA_INTERRUPT;
118#endif
115 sa.sa_handler = act; 119 sa.sa_handler = act;
116 if (sigaction(sig, &sa, NULL) == -1) 120 if (sigaction(sig, &sa, NULL) == -1)
117 return (mysig_t) -1; 121 return (mysig_t) -1;