summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-02-18 03:42:02 +0000
committerKevin Steves <stevesk@pobox.com>2001-02-18 03:42:02 +0000
commiteff26f275eca8fb4c1dab03599ad21d79a8a55ea (patch)
tree3e410ef0884356847f5f3161ca8a2e47ef8deabb
parentdf28802cddeb887a6fa3c4a8e8a4f208ce3652b5 (diff)
- (stevesk) misc.c: cpp rework of SA_(INTERRUPT|RESTART) handling.
-rw-r--r--ChangeLog3
-rw-r--r--misc.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c31db9ce..f2db25bb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@
19 SunOS) 19 SunOS)
20 - (djm) SCO needs librpc for libwrap. Patch from Tim Rice 20 - (djm) SCO needs librpc for libwrap. Patch from Tim Rice
21 <tim@multitalents.net> 21 <tim@multitalents.net>
22 - (stevesk) misc.c: cpp rework of SA_(INTERRUPT|RESTART) handling.
22 23
2320010217 2420010217
24 - (bal) OpenBSD Sync: 25 - (bal) OpenBSD Sync:
@@ -4026,4 +4027,4 @@
4026 - Wrote replacements for strlcpy and mkdtemp 4027 - Wrote replacements for strlcpy and mkdtemp
4027 - Released 1.0pre1 4028 - Released 1.0pre1
4028 4029
4029$Id: ChangeLog,v 1.792 2001/02/18 02:09:40 djm Exp $ 4030$Id: ChangeLog,v 1.793 2001/02/18 03:42:02 stevesk Exp $
diff --git a/misc.c b/misc.c
index 4ec5d55ff..6ce66fc45 100644
--- a/misc.c
+++ b/misc.c
@@ -108,13 +108,13 @@ 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#ifdef SA_RESTART
112 if (sig == SIGCHLD) 111 if (sig == SIGCHLD)
112#if defined(SA_RESTART)
113 sa.sa_flags |= SA_RESTART; 113 sa.sa_flags |= SA_RESTART;
114#endif 114#elif defined(SA_INTERRUPT)
115#ifdef SA_INTERRUPT
116 if (sig == SIGCHLD)
117 sa.sa_flags |= SA_INTERRUPT; 115 sa.sa_flags |= SA_INTERRUPT;
116#else
117 ;
118#endif 118#endif
119 sa.sa_handler = act; 119 sa.sa_handler = act;
120 if (sigaction(sig, &sa, NULL) == -1) 120 if (sigaction(sig, &sa, NULL) == -1)