From 35028dcec2452fe45ccbc8f6786709ec02a633b7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 6 Aug 2001 22:51:21 +0000 Subject: 2001-08-06 Roland McGrath * wait.c (S_proc_wait: reap): Set *PID_STATUS to CHILD->p_pid. Reported by Neal H Walfield . --- proc/wait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc/wait.c b/proc/wait.c index 8771e4c2..6fc94e83 100644 --- a/proc/wait.c +++ b/proc/wait.c @@ -183,7 +183,7 @@ S_proc_wait (struct proc *p, *status = child->p_status; *sigcode = child->p_sigcode; *ru = child->p_rusage; /* all zeros if !p_dead */ - *pid_status = pid; + *pid_status = child->p_pid; if (child->p_dead) complete_exit (child); return 1; -- cgit v1.2.3