projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More checks for missing functions.
[tinc]
/
lib
/
pidfile.c
diff --git
a/lib/pidfile.c
b/lib/pidfile.c
index
2dea70b
..
4a7276d
100644
(file)
--- a/
lib/pidfile.c
+++ b/
lib/pidfile.c
@@
-27,6
+27,7
@@
#include "system.h"
#include "system.h"
+#ifndef HAVE_MINGW
/* read_pid
*
* Reads the specified pidfile and returns the read pid.
/* read_pid
*
* Reads the specified pidfile and returns the read pid.
@@
-68,6
+69,7
@@
int check_pid (char *pidfile)
errno = 0;
if (kill(pid, 0) && errno == ESRCH)
return(0);
errno = 0;
if (kill(pid, 0) && errno == ESRCH)
return(0);
+#endif
return pid;
}
return pid;
}
@@
-127,4
+129,4
@@
int remove_pid (char *pidfile)
{
return unlink (pidfile);
}
{
return unlink (pidfile);
}
-
+#endif