From fa43b2dce8b7b952d9ec54446c5af0570eaa6b06 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 2 May 1995 18:37:04 +0000 Subject: (reap): Check for ECHILD, not ESRCH. --- utils/shd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/shd.c b/utils/shd.c index 8e260ccf..eb058118 100644 --- a/utils/shd.c +++ b/utils/shd.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -43,7 +43,7 @@ reap (pid_t waitfor) if (pid == -1) { - if (errno != ESRCH && errno != EWOULDBLOCK) + if (errno != ECHILD && errno != EWOULDBLOCK) perror ("waitpid"); return; } -- cgit v1.2.3