The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=2038232e3e40cfc3dedba1a9f4a66984448eca1e

commit 2038232e3e40cfc3dedba1a9f4a66984448eca1e
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-07-18 16:29:10 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-07-18 16:50:28 +0000

    thread_stopped(): style
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/kern/kern_sig.c | 4 ++--
 1 file 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);
        }

Reply via email to