Ah, I see what you are saying. `/var` isn't always available to an application, especially in a shared server situation. That's one of the reasons pretty much every one of the daemonizing gems implements the `kill(0)` mechanism.will_in_wi (William Johnston)
Thanks for looking at this! Locking is less reliable than kill(0) in situations such as NFS filesystems. Not all filesystems have a robust locking mechanism. So, yes, we'd need kill(0) for a robust implementation of a locking pidfile....will_in_wi (William Johnston)
A number of applications, such as Monit and God, use the pidfiles of the applications they are monitoring in order to identify if they are still running. Pid files are referenced in the Linux Standards Base init script spec: http://re...will_in_wi (William Johnston)
Thanks Martin! Akira, that's another good way of handling the issue in a lot of circumstances. However, lockfiles have some issues on certain filesystems like NFS. Also, with a locked file, it isn't always straightforward across platf...will_in_wi (William Johnston)
I'm unable to reopen this ticket, so I'd appreciate it if someone would do so for me. My apologies for not responding sooner, I must not have seen the previous message somehow. I came back to see what the status was after reimplementing ...will_in_wi (William Johnston)
What's the process for a decision being made on this feature request? https://bugs.ruby-lang.org/projects/ruby/wiki/HowToContribute seems to encourage a ping if a feature request gets missed. In this case, ping! Thanks!will_in_wi (William Johnston)
I tried to get Ruby to compile on a Windows 2012R2 VM, and I think I was partially successful. It appears that `test_process_exists_when_not_exists` fails on Windows, but a ton of other tests on trunk also fail, so I don't think I've got...will_in_wi (William Johnston)
I've updated the PR to fix this round of comments. If there are more comments, I'll address them, otherwise, what else should I do to get this decided upon? I'm also working on a Windows VM to confirm that this all works there. Tha...will_in_wi (William Johnston)
I don't have a Windows machine to set this up and test. I'll try and do so. It was commented on the PR that there are some issues with the test suite in terms of Windows support, so I'll need to take a look at that.will_in_wi (William Johnston)