Lines 158-165
Link Here
|
158 |
static char default_hostname[MAXHOSTNAMELEN]; |
158 |
static char default_hostname[MAXHOSTNAMELEN]; |
159 |
|
159 |
|
160 |
/* Flags set by signal catcher. */ |
160 |
/* Flags set by signal catcher. */ |
161 |
PRIVATE int do_readtab = 0; |
161 |
PRIVATE volatile sig_atomic_t do_readtab = 0; |
162 |
PRIVATE int do_dumptab = 0; |
162 |
PRIVATE volatile sig_atomic_t do_dumptab = 0; |
163 |
|
163 |
|
164 |
/* |
164 |
/* |
165 |
* Globals below are associated with the bootp database file (bootptab). |
165 |
* Globals below are associated with the bootp database file (bootptab). |
Lines 598-603
Link Here
|
598 |
catcher(sig) |
598 |
catcher(sig) |
599 |
int sig; |
599 |
int sig; |
600 |
{ |
600 |
{ |
|
|
601 |
#if !defined(SA_NOCLDSTOP) && defined(SYSV) |
602 |
int save_errno = errno; |
603 |
#endif |
604 |
|
601 |
if (sig == SIGHUP) |
605 |
if (sig == SIGHUP) |
602 |
do_readtab = 1; |
606 |
do_readtab = 1; |
603 |
if (sig == SIGUSR1) |
607 |
if (sig == SIGUSR1) |
Lines 605-610
Link Here
|
605 |
#if !defined(SA_NOCLDSTOP) && defined(SYSV) |
609 |
#if !defined(SA_NOCLDSTOP) && defined(SYSV) |
606 |
/* For older "System V" derivatives with no sigaction(). */ |
610 |
/* For older "System V" derivatives with no sigaction(). */ |
607 |
signal(sig, catcher); |
611 |
signal(sig, catcher); |
|
|
612 |
errno = save_errno; |
608 |
#endif |
613 |
#endif |
609 |
} |
614 |
} |