summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-05-02 18:37:04 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-05-02 18:37:04 +0000
commitfa43b2dce8b7b952d9ec54446c5af0570eaa6b06 (patch)
treefeab6c0ca3efaaf9664c7e0e37d060eccc811d61 /utils
parent3bb45eb81e677b4c92cc328cd0e580bd32ccc663 (diff)
(reap): Check for ECHILD, not ESRCH.
Diffstat (limited to 'utils')
-rw-r--r--utils/shd.c4
1 files changed, 2 insertions, 2 deletions
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;
}