Use sigprocmask(), not sigsetmask().
This commit is contained in:
parent
3f6e0361e1
commit
3e417cced4
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: error.c,v 1.11 1995/03/21 09:08:51 cgd Exp $ */
|
/* $NetBSD: error.c,v 1.12 1995/03/21 15:40:16 mycroft Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
char sccsid[] = "@(#)error.c 8.1 (Berkeley) 5/31/93";
|
char sccsid[] = "@(#)error.c 8.1 (Berkeley) 5/31/93";
|
||||||
#else
|
#else
|
||||||
static char rcsid[] = "$NetBSD: error.c,v 1.11 1995/03/21 09:08:51 cgd Exp $";
|
static char rcsid[] = "$NetBSD: error.c,v 1.12 1995/03/21 15:40:16 mycroft Exp $";
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -103,14 +103,15 @@ exraise(e)
|
||||||
|
|
||||||
void
|
void
|
||||||
onint() {
|
onint() {
|
||||||
|
sigset_t set;
|
||||||
|
|
||||||
if (suppressint) {
|
if (suppressint) {
|
||||||
intpending++;
|
intpending++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
intpending = 0;
|
intpending = 0;
|
||||||
#ifdef BSD
|
sigemptyset(&set);
|
||||||
sigsetmask(0);
|
sigprocmask(SIG_SETMASK, &set);
|
||||||
#endif
|
|
||||||
if (rootshell && iflag)
|
if (rootshell && iflag)
|
||||||
exraise(EXINT);
|
exraise(EXINT);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue