When the wait*(2) syscalls wait for any process (P_ALL), they should
ignore processes created with the pdfork(2) syscall. PR: 201054 Approved by: pjd (mentor) Discussed with: emaste, rwatson
This commit is contained in:
parent
479e7c449b
commit
53bf545ddb
@ -981,6 +981,10 @@ proc_to_reap(struct thread *td, struct proc *p, idtype_t idtype, id_t id,
|
||||
|
||||
switch (idtype) {
|
||||
case P_ALL:
|
||||
if (p->p_procdesc != NULL) {
|
||||
PROC_UNLOCK(p);
|
||||
return (0);
|
||||
}
|
||||
break;
|
||||
case P_PID:
|
||||
if (p->p_pid != (pid_t)id) {
|
||||
|
Loading…
Reference in New Issue
Block a user