summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-18 13:04:23 +1100
committerDamien Miller <djm@mindrot.org>2001-02-18 13:04:23 +1100
commit0318e2e0fb0be94b61f618e92ddd5101d2f06d1a (patch)
tree6d56e9539e1cbba400d6af6cf6cce5823d2f5318 /misc.c
parent8609332558d7130f0e4a71eba8bcad6fdebddcd5 (diff)
- (djm) Use SA_INTERRUPT along SA_RESTART if present (equivalent for
SunOS)
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;