A Linux thread created using clone() should not send SIGCHLD to its
parent if no signal is specified in the clone() flags argument. PR: 42457 MFC after: 2 weeks
This commit is contained in:
parent
097b26a617
commit
6567eef757
@ -470,10 +470,10 @@ exit1(struct thread *td, int rv)
|
||||
} else
|
||||
mtx_unlock(&p->p_pptr->p_sigacts->ps_mtx);
|
||||
|
||||
if (p->p_sigparent && p->p_pptr != initproc)
|
||||
psignal(p->p_pptr, p->p_sigparent);
|
||||
else
|
||||
if (p->p_pptr == initproc)
|
||||
psignal(p->p_pptr, SIGCHLD);
|
||||
else if (p->p_sigparent != 0)
|
||||
psignal(p->p_pptr, p->p_sigparent);
|
||||
PROC_UNLOCK(p->p_pptr);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user