Obtain proc lock around modification of p_siglist in linux_wait4().
This commit is contained in:
parent
c2604cb567
commit
fb30aed1a5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user