summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--misc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 57d38407..8499ce44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 $
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;