diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-16 12:54:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-16 12:54:06 +0000 |
commit | bb9c7e09f6c88f40adec6374f2fa691029b0aa43 (patch) | |
tree | 5f7270a0c9b99cdb53bfba721882c51809af69bd /sys/kern | |
parent | 67c5460ed0a5b8b5cbe8abadf91b62acb24088e4 (diff) |
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@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_sig.c | 10 |
1 files changed, 1 insertions, 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); |