summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-02-16 14:58:12 +0000
committerKevin Steves <stevesk@pobox.com>2001-02-16 14:58:12 +0000
commit799bed85ab0a37362bcf06f3f30c55ba8d730848 (patch)
treecf03ebe79ae049235175973ee690bf6255a0c988 /misc.c
parent9646f3b3f9fa82a6f5cdf49cbb09481517dfb1c6 (diff)
- (stevesk) set SA_RESTART flag in mysignal() for SIGCHLD;
needed on Unixware 2.x.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 46cf088c..800588af 100644
--- a/misc.c
+++ b/misc.c
@@ -108,6 +108,8 @@ mysignal(int sig, mysig_t act)
memset(&sa, 0, sizeof sa);
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
+ if (sig == SIGCHLD)
+ sa.sa_flags |= SA_RESTART;
sa.sa_handler = act;
if (sigaction(sig, &sa, 0) == -1)
return (mysig_t) -1;