diff options
| author | Don Lewis <truckman@FreeBSD.org> | 2004-02-19 06:43:48 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 2004-02-19 06:43:48 +0000 |
| commit | 6567eef7573a348a159e3bb47493a362cdcfc701 (patch) | |
| tree | e9e9b0680a1c23c00edcd0fe56752bf446f7cbb1 /sys | |
| parent | 097b26a61746441eb1d9c3b576454bc627012e32 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_exit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 419c4b2e9217..84c0680a6ecb 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -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); /* |
