From fb30aed1a5f4015784cd1c1f929461c6455ea46a Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Fri, 14 Feb 2003 08:59:49 +0000 Subject: Obtain proc lock around modification of p_siglist in linux_wait4(). --- sys/compat/linux/linux_misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/compat') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 6b2dda96a8f55..57460a8bff44b 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -832,7 +832,9 @@ linux_wait4(struct thread *td, struct linux_wait4_args *args) if ((error = wait4(td, &tmp)) != 0) return error; + PROC_LOCK(td->td_proc); SIGDELSET(td->td_proc->p_siglist, SIGCHLD); + PROC_UNLOCK(td->td_proc); if (args->status) { if ((error = copyin((caddr_t)args->status, &tmpstat, -- cgit v1.3