- (Bal) Patch for lack of RA_RESTART in misc.c for mysignal by

stevesk
This commit is contained in:
Ben Lindstrom 2001-02-17 16:51:07 +00:00
parent 6dc75f594d
commit 970c009b8e
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,8 @@
20010218
- (bal) Patch for fix FCHMOD reference in ftp-client.c by Tim Rice
<tim@multitalents.net>
- (Bal) Patch for lack of RA_RESTART in misc.c for mysignal by
stevesk
20010217
- (bal) OpenBSD Sync:
@ -4008,4 +4010,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.783 2001/02/17 16:47:47 mouring Exp $
$Id: ChangeLog,v 1.784 2001/02/17 16:51:07 mouring Exp $

2
misc.c
View File

@ -108,8 +108,10 @@ 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)
sa.sa_flags |= SA_RESTART;
#endif
sa.sa_handler = act;
if (sigaction(sig, &sa, 0) == -1)
return (mysig_t) -1;