diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 4d7c2b20bc7..816d062dd51 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -424,14 +424,16 @@ wait1(q, uap, compat) p->p_pid != uap->pid && p->p_pgid != -uap->pid) continue; - /* This special case handles a kthread spawned by linux_clone - * (see linux_misc.c). The linux_wait4 and linux_waitpid functions - * need to be able to distinguish between waiting on a process and - * waiting on a thread. It is a thread if p_sigparent is not SIGCHLD, - * and the WLINUXCLONE option signifies we want to wait for threads - * and not processes. + /* + * This special case handles a kthread spawned by linux_clone + * (see linux_misc.c). The linux_wait4 and linux_waitpid + * functions need to be able to distinguish between waiting + * on a process and waiting on a thread. It is a thread if + * p_sigparent is not SIGCHLD, and the WLINUXCLONE option + * signifies we want to wait for threads and not processes. */ - if ((p->p_sigparent != SIGCHLD) ^ ((uap->options & WLINUXCLONE) != 0)) + if ((p->p_sigparent != SIGCHLD) ^ + ((uap->options & WLINUXCLONE) != 0)) continue; nfound++;