From 31342e3c5e18ba2454a13af522497b4e46fcc549 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 22 May 2024 09:22:55 +0000 Subject: [PATCH] In the big p_stat switch in ptsignal do not call return but instead use one of the gotos. In this case goto out with mask and prop set to 0. OK jca@ --- sys/kern/kern_sig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index ae6a2bea196..a2a8f1b7ee2 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.328 2024/05/20 10:32:20 claudio Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.329 2024/05/22 09:22:55 claudio Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -1106,8 +1106,9 @@ ptsignal(struct proc *p, int signum, enum signal_type type) */ if (prop & SA_TTYSTOP && pr->ps_pgrp->pg_jobc == 0) { - SCHED_UNLOCK(s); - return; + mask = 0; + prop = 0; + goto out; } } } -- 2.20.1