summaryrefslogtreecommitdiff
path: root/proc/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc/wait.c')
-rw-r--r--proc/wait.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proc/wait.c b/proc/wait.c
index d71a0631..d192b510 100644
--- a/proc/wait.c
+++ b/proc/wait.c
@@ -182,13 +182,13 @@ S_proc_wait (struct proc *p,
/* See if we can satisfy the request with a stopped
child; also check for invalid arguments here. */
if (!p->p_ochild)
- return ESRCH;
+ return ECHILD;
if (pid > 0)
{
struct proc *child = pid_find (pid);
if (!child || child->p_parent != p)
- return ESRCH;
+ return ECHILD;
if (child->p_stopped && !child->p_waited
&& ((options & WUNTRACED) || child->p_traced))
{
@@ -221,7 +221,7 @@ S_proc_wait (struct proc *p,
}
if (!had_a_match)
- return ESRCH;
+ return ECHILD;
}
if (options & WNOHANG)