Closed yorickpeterse closed 11 years ago
File.writable? will always return false for a non existing file, thus it's better to check the parent directory to see if we can write a PID file.
This was my own dumb mistake. I assumed File.writable? would also work for non existing files, alas it does not.
File.writable? will always return false for a non existing file, thus it's better to check the parent directory to see if we can write a PID file.