diff options
author | Kevin Steves <stevesk@pobox.com> | 2001-02-16 14:58:12 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2001-02-16 14:58:12 +0000 |
commit | 799bed85ab0a37362bcf06f3f30c55ba8d730848 (patch) | |
tree | cf03ebe79ae049235175973ee690bf6255a0c988 | |
parent | 9646f3b3f9fa82a6f5cdf49cbb09481517dfb1c6 (diff) |
- (stevesk) set SA_RESTART flag in mysignal() for SIGCHLD;
needed on Unixware 2.x.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | misc.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -20,6 +20,8 @@ genericize password padding function for SSH1 and SSH2. add stylized echo to 2, too. - (djm) Add roundup() macro to defines.h + - (stevesk) set SA_RESTART flag in mysignal() for SIGCHLD; + needed on Unixware 2.x. 20010215 - (djm) Move PAM session setup back to before setuid to user. Fixes @@ -3993,4 +3995,4 @@ - Wrote replacements for strlcpy and mkdtemp - Released 1.0pre1 -$Id: ChangeLog,v 1.779 2001/02/16 01:34:57 djm Exp $ +$Id: ChangeLog,v 1.780 2001/02/16 14:58:12 stevesk Exp $ @@ -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; |