From feac7255b38d87dbbad127349a7d01bda279b66d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 18 Apr 1995 13:30:07 +0000 Subject: (S_proc_wait): Don't return ESRCH; return ECHILD. --- proc/wait.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proc/wait.c') 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) -- cgit v1.2.3