mirror of git://anongit.mindrot.org/openssh.git
- (stevesk) misc.c: cpp rework of SA_(INTERRUPT|RESTART) handling.
This commit is contained in:
parent
df28802cdd
commit
eff26f275e
|
@ -19,6 +19,7 @@
|
|||
SunOS)
|
||||
- (djm) SCO needs librpc for libwrap. Patch from Tim Rice
|
||||
<tim@multitalents.net>
|
||||
- (stevesk) misc.c: cpp rework of SA_(INTERRUPT|RESTART) handling.
|
||||
|
||||
20010217
|
||||
- (bal) OpenBSD Sync:
|
||||
|
@ -4026,4 +4027,4 @@
|
|||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.792 2001/02/18 02:09:40 djm Exp $
|
||||
$Id: ChangeLog,v 1.793 2001/02/18 03:42:02 stevesk Exp $
|
||||
|
|
8
misc.c
8
misc.c
|
@ -108,13 +108,13 @@ mysignal(int sig, mysig_t act)
|
|||
memset(&sa, 0, sizeof(sa));
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_flags = 0;
|
||||
#ifdef SA_RESTART
|
||||
if (sig == SIGCHLD)
|
||||
#if defined(SA_RESTART)
|
||||
sa.sa_flags |= SA_RESTART;
|
||||
#endif
|
||||
#ifdef SA_INTERRUPT
|
||||
if (sig == SIGCHLD)
|
||||
#elif defined(SA_INTERRUPT)
|
||||
sa.sa_flags |= SA_INTERRUPT;
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
sa.sa_handler = act;
|
||||
if (sigaction(sig, &sa, NULL) == -1)
|
||||
|
|
Loading…
Reference in New Issue