pidfile
pidfile copied to clipboard
remove_pidfile is not atomic
def remove_pidfile File.unlink(self.pidpath) if self.pidfile_exists? end
No such file or directory @ unlink_internal - /tmp/a.pid
Looks like this is a race, and the pidfile disappears right after the exists has been runt.
I think either the check and delete should be flocked or the delete should not fail if the file is not there.
Thanks, Sebastian, but I haven't worked on this for years.
Feel free to fork it and make it work correctly.