mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Import nslookup from bind-4.9.3-beta26 (update from beta24)
This commit is contained in:
parent
bb9011d0b7
commit
73ff7ba7fb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/bind4/dist/; revision=11715
@ -55,7 +55,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)subr.c 5.24 (Berkeley) 3/2/91";
|
||||
static char rcsid[] = "$Id: subr.c,v 8.2 1994/12/15 06:27:07 vixie Exp $";
|
||||
static char rcsid[] = "$Id: subr.c,v 8.3 1995/08/21 01:27:27 vixie Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -176,12 +176,22 @@ Malloc(size)
|
||||
signal(SIGINT, old);
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
#ifdef POSIX_SIGNALS
|
||||
{ sigset_t sset;
|
||||
sigemptyset(&sset);
|
||||
sigaddset(&sset,SIGINT);
|
||||
sigprocmask(SIG_BLOCK,&sset,NULL);
|
||||
ptr = malloc((unsigned) size);
|
||||
sigprocmask(SIG_UNBLOCK,&sset,NULL);
|
||||
}
|
||||
#else
|
||||
{ int saveMask;
|
||||
saveMask = sigblock(sigmask(SIGINT));
|
||||
ptr = malloc((unsigned) size);
|
||||
(void) sigsetmask(saveMask);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
if (ptr == NULL) {
|
||||
fflush(stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user