git: 2cbf21fc2dbe - stable/15 - thread_stopped(): style

Konstantin Belousov <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a66a692.30e24.79080659__9727.51961542002$1785112589$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=2cbf21fc2dbe94eaf49221796bdc1cd44717a515

commit 2cbf21fc2dbe94eaf49221796bdc1cd44717a515
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-07-18 16:29:10 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-07-27 00:28:44 +0000

    thread_stopped(): style
    
    (cherry picked from commit 2038232e3e40cfc3dedba1a9f4a66984448eca1e)
---
 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 fed5b62ee1c7..5f2034525bc0 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -3419,12 +3419,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);
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.