summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-04-18 13:30:07 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-04-18 13:30:07 +0000
commitfeac7255b38d87dbbad127349a7d01bda279b66d (patch)
tree84cea1abcc179748c4915293cf99889418e150ba
parentb7734c4b501b179cdbb89992835dcbfea6da0db9 (diff)
(S_proc_wait): Don't return ESRCH; return ECHILD.
-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)