internal changes

This commit is contained in:
2010-06-12 12:30:12 +02:00
parent 9ff2ebbffa
commit d38cbcc0c6
16 changed files with 496 additions and 125 deletions
+2
View File
@@ -44,6 +44,8 @@ pid_t pidfile_check(const char *filename, int remove_stale)
int len = read(fd, buf, sizeof(buf) -1);
buf[len] = '\0';
close(fd);
char *tmp;
pid_t pid = strtol(buf, &tmp, 10);
if (len == 0 || tmp == buf)