projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef88db6
)
Set errno to 0 before trying to kill the other process.
author
Ivo Timmermans
<ivo@lychnis.net>
Fri, 24 Nov 2000 14:13:06 +0000
(14:13 +0000)
committer
Ivo Timmermans
<ivo@lychnis.net>
Fri, 24 Nov 2000 14:13:06 +0000
(14:13 +0000)
lib/pidfile.c
patch
|
blob
|
history
diff --git
a/lib/pidfile.c
b/lib/pidfile.c
index
54a6b4c
..
a954d18
100644
(file)
--- 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);