From bb9c7e09f6c88f40adec6374f2fa691029b0aa43 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sat, 16 Nov 2024 12:54:06 +0000 Subject: Remove unreachable check for orphaned process groups in cursig. setsigctx() now does this check and clears sig_stop in that case and instead set sig_ignore. So the check in cursig that is based on sig_stop can never be true. OK mpi@ --- sys/kern/kern_sig.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index f3dd6f79b45..23f265c665f 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.348 2024/11/06 17:14:01 claudio Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.349 2024/11/16 12:54:05 claudio Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -1431,14 +1431,6 @@ cursig(struct proc *p, struct sigctx *sctx, int deep) * then clear the signal. */ if (sctx->sig_stop) { - mtx_enter(&pr->ps_mtx); - if (pr->ps_flags & PS_TRACED || - (pr->ps_pgrp->pg_jobc == 0 && - prop & SA_TTYSTOP)) { - mtx_leave(&pr->ps_mtx); - break; /* == ignore */ - } - mtx_leave(&pr->ps_mtx); pr->ps_xsig = signum; SCHED_LOCK(); proc_stop(p, 1); -- cgit v1.2.3