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 57d38407e..8499ce444 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,8 @@
20 genericize password padding function for SSH1 and SSH2. 20 genericize password padding function for SSH1 and SSH2.
21 add stylized echo to 2, too. 21 add stylized echo to 2, too.
22 - (djm) Add roundup() macro to defines.h 22 - (djm) Add roundup() macro to defines.h
23 - (stevesk) set SA_RESTART flag in mysignal() for SIGCHLD;
24 needed on Unixware 2.x.
23 25
2420010215 2620010215
25 - (djm) Move PAM session setup back to before setuid to user. Fixes 27 - (djm) Move PAM session setup back to before setuid to user. Fixes
@@ -3993,4 +3995,4 @@
3993 - Wrote replacements for strlcpy and mkdtemp 3995 - Wrote replacements for strlcpy and mkdtemp
3994 - Released 1.0pre1 3996 - Released 1.0pre1
3995 3997
3996$Id: ChangeLog,v 1.779 2001/02/16 01:34:57 djm Exp $ 3998$Id: ChangeLog,v 1.780 2001/02/16 14:58:12 stevesk Exp $
diff --git a/misc.c b/misc.c
index 46cf088c7..800588af4 100644
--- a/misc.c
+++ b/misc.c
@@ -108,6 +108,8 @@ mysignal(int sig, mysig_t act)
108 memset(&sa, 0, sizeof sa); 108 memset(&sa, 0, sizeof sa);
109 sigemptyset(&sa.sa_mask); 109 sigemptyset(&sa.sa_mask);
110 sa.sa_flags = 0; 110 sa.sa_flags = 0;
111 if (sig == SIGCHLD)
112 sa.sa_flags |= SA_RESTART;
111 sa.sa_handler = act; 113 sa.sa_handler = act;
112 if (sigaction(sig, &sa, 0) == -1) 114 if (sigaction(sig, &sa, 0) == -1)
113 return (mysig_t) -1; 115 return (mysig_t) -1;