diff options
author | Roland McGrath <roland@gnu.org> | 1994-06-30 12:40:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-06-30 12:40:09 +0000 |
commit | 2e3eb3ef0afa61b66797e80a4a0b21db34aa8a24 (patch) | |
tree | c55f434d50793d8c663141bf323eb7abdbdbe79c | |
parent | 674d79863886ad8c88e3bb59d8508a7a9ea2891d (diff) |
Formerly wait.c.~5~
-rw-r--r-- | proc/wait.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/proc/wait.c b/proc/wait.c index 2674c408..0627e82d 100644 --- a/proc/wait.c +++ b/proc/wait.c @@ -47,8 +47,9 @@ struct zombie static struct zombie *zombie_list; -/* A process is dying. Check if the parent is waiting for us to exit; - if so wake it up, otherwise, enter us as a zombie. */ +/* A process is dying. Send SIGCHLD to the parent. Check if the parent is + waiting for us to exit; if so wake it up, otherwise, enter us as a + zombie. */ void alert_parent (struct proc *p) { @@ -57,6 +58,8 @@ alert_parent (struct proc *p) /* Don't allow init to exit */ assert (p->p_parent); + nowait_sig_post (p->p_parent->p_msgport, SIGCHLD, p->p_parent->p_task); + if (!p->p_exiting) p->p_status = W_EXITCODE (0, SIGKILL); |