diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-05-07 10:46:36 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-05-07 10:46:36 +0000 |
commit | deb869fadcc9d0f3b0c2e739a2143c951c08a2e4 (patch) | |
tree | dd775869292621d749eeca3deaa10676d7cc0883 /sys | |
parent | 9e0b9953f0559480b0f8b0059c2cb463b14f9a76 (diff) |
In Rev 1.296 the update of the siglist was moved to the end of ptsignal().
One atomic_clearbits_int() hiding in SSTOP was missed when converting all
the exceptions that cleared the siglist again. Instead of clearing the bits
the mask needs to be set to 0 so that it is properly ignored.
OK mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 2280bc7abd7..1a022be4070 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.325 2024/04/18 09:06:42 claudio Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.326 2024/05/07 10:46:35 claudio Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -1171,7 +1171,7 @@ ptsignal(struct proc *p, int signum, enum signal_type type) atomic_clearbits_int(&p->p_flag, P_SUSPSIG); wakeparent = 1; if (action == SIG_DFL) - atomic_clearbits_int(siglist, mask); + mask = 0; if (action == SIG_CATCH) goto runfast; if (p->p_wchan == NULL) |