diff options
Diffstat (limited to 'proc/wait.c')
-rw-r--r-- | proc/wait.c | 2 |
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; |