commit | 799bed85ab0a37362bcf06f3f30c55ba8d730848 | [log] [tgz] |
---|---|---|
author | Kevin Steves <stevesk@pobox.com> | Fri Feb 16 14:58:12 2001 +0000 |
committer | Kevin Steves <stevesk@pobox.com> | Fri Feb 16 14:58:12 2001 +0000 |
tree | cf03ebe79ae049235175973ee690bf6255a0c988 | |
parent | 9646f3b3f9fa82a6f5cdf49cbb09481517dfb1c6 [diff] [blame] |
- (stevesk) set SA_RESTART flag in mysignal() for SIGCHLD; needed on Unixware 2.x.
diff --git a/misc.c b/misc.c index 46cf088..800588a 100644 --- a/misc.c +++ b/misc.c
@@ -108,6 +108,8 @@ 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;