diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/job.c | 5 | ||||
-rw-r--r-- | usr.bin/make/util.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 3b250fdce4c..ecc0d3a53ef 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.9 1998/03/15 22:19:24 flipk Exp $ */ +/* $OpenBSD: job.c,v 1.10 1998/06/03 17:00:05 deraadt Exp $ */ /* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: job.c,v 1.9 1998/03/15 22:19:24 flipk Exp $"; +static char rcsid[] = "$OpenBSD: job.c,v 1.10 1998/06/03 17:00:05 deraadt Exp $"; #endif #endif /* not lint */ @@ -412,6 +412,7 @@ JobPassSig(signo) sigemptyset(&nmask); sigaddset(&nmask, signo); sigprocmask(SIG_SETMASK, &nmask, &omask); + memset(&act, 0, sizeof act); act.sa_handler = SIG_DFL; sigemptyset(&act.sa_mask); act.sa_flags = 0; diff --git a/usr.bin/make/util.c b/usr.bin/make/util.c index 1d2c58fba97..4dd028b428c 100644 --- a/usr.bin/make/util.c +++ b/usr.bin/make/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.7 1997/07/25 21:05:36 mickey Exp $ */ +/* $OpenBSD: util.c,v 1.8 1998/06/03 17:00:04 deraadt Exp $ */ /* $NetBSD: util.c,v 1.10 1996/12/31 17:56:04 christos Exp $ */ /* @@ -6,7 +6,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: util.c,v 1.7 1997/07/25 21:05:36 mickey Exp $"; +static char rcsid[] = "$OpenBSD: util.c,v 1.8 1998/06/03 17:00:04 deraadt Exp $"; #endif #include <stdio.h> @@ -341,6 +341,7 @@ signal(s, a)) () { struct sigaction sa, osa; + memset(&sa, 0, sizeof sa); sa.sa_handler = a; sigemptyset(&sa.sa_mask); sa.sa_flags = SA_RESTART; |