projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use struct addrinfo in connection_t to hold all host data such as IP
[tinc]
/
lib
/
pidfile.c
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);