diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-09-21 21:36:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-09-21 21:36:49 +0000 |
commit | 3a0eb7800110c44284d444629acf1560617f167d (patch) | |
tree | d4e7b248b6f39b8b2f91de777751c3eebdb049af /sys | |
parent | 22e5d570a08b03b1fbf6538eb9346b47015c3469 (diff) |
execsigs() could modify the wrong sigacts; based on David.Arana@eng.sun.com saying he could not understand how this worked
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sig.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 3783cd31258..33749d3d38b 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.48 2001/09/20 23:30:29 art Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.49 2001/09/21 21:36:48 deraadt Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -387,10 +387,11 @@ void execsigs(p) register struct proc *p; { - register struct sigacts *ps = p->p_sigacts; + register struct sigacts *ps; register int nc, mask; sigactsunshare(p); + ps = p->p_sigacts; /* * Reset caught signals. Held signals remain held |