summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-06 22:51:21 +0000
committerRoland McGrath <roland@gnu.org>2001-08-06 22:51:21 +0000
commit35028dcec2452fe45ccbc8f6786709ec02a633b7 (patch)
treeb6073d0f48430f8fede3ebd8beddceffa6cdd88a
parentfd4bb88b241a1b8563911c56977a798181fce837 (diff)
2001-08-06 Roland McGrath <roland@frob.com>
* wait.c (S_proc_wait: reap): Set *PID_STATUS to CHILD->p_pid. Reported by Neal H Walfield <neal@cs.uml.edu>.
-rw-r--r--proc/wait.c2
1 files changed, 1 insertions, 1 deletions
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;