diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-07-18 16:29:10 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-07-18 16:50:28 +0000 |
| commit | 2038232e3e40cfc3dedba1a9f4a66984448eca1e (patch) | |
| tree | 591831a5112879a9d440f22cbbe04ef1facaf0a7 | |
| parent | 506e3e30a43cc04a21aa65a423bbd1cc4e0543f8 (diff) | |
thread_stopped(): style
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
| -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 23e71aef80db..27ab109d2ac5 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -3422,12 +3422,12 @@ thread_stopped(struct proc *p) n = p->p_suspcount; if (p == curproc) n++; - if ((p->p_flag & P_STOPPED_SIG) && (n == p->p_numthreads)) { + if ((p->p_flag & P_STOPPED_SIG) != 0 && n == p->p_numthreads) { PROC_SUNLOCK(p); p->p_flag &= ~P_WAITED; PROC_LOCK(p->p_pptr); childproc_stopped(p, (p->p_flag & P_TRACED) ? - CLD_TRAPPED : CLD_STOPPED); + CLD_TRAPPED : CLD_STOPPED); PROC_UNLOCK(p->p_pptr); PROC_SLOCK(p); } |
