From: Ivo Timmermans Date: Fri, 24 Nov 2000 14:13:06 +0000 (+0000) Subject: Set errno to 0 before trying to kill the other process. X-Git-Tag: release-1.0pre4~132 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4cb4a7d298d560593f84d974bf77d0ee8a911a50;p=oweals%2Ftinc.git Set errno to 0 before trying to kill the other process. --- diff --git a/lib/pidfile.c b/lib/pidfile.c index 54a6b4c..a954d18 100644 --- a/lib/pidfile.c +++ b/lib/pidfile.c @@ -73,6 +73,7 @@ int check_pid (char *pidfile) * be found -- GW */ /* But... errno is usually changed only on error.. */ + errno = 0; if (kill(pid, 0) && errno == ESRCH) return(0);