Issue #21, INFO message on unlink a stale pidfile

This commit is contained in:
Andrew Bettison 2012-10-08 14:56:55 +10:30
parent 8483276494
commit 4ecb996909

View File

@ -78,6 +78,7 @@ int server_pid()
int pid = atoi(buf);
if (pid > 0 && kill(pid, 0) != -1)
return pid;
INFOF("Unlinking stale pidfile %s", filename);
unlink(filename);
}
return 0;