Closed rbscholtus closed 4 years ago
Created PR. I hope it is useful to you.
Thanks !
Honestly I have no experience on Windows so it's hard for me to really tell, but it makes sense to do it in a similar manner.
And if there are others, people can always contribute suggestions in additional PR's :-)
Hi! Thanks for the awesome library, I think it's the best pidfile manager around.
I have some doubt about one thing though, on Windows the pdifile is simply stored in the temp folder. Doesn't that make it susceptible to being deleted by some cleanup process? I like the idea of storing the pidfile in a user folder first (similar to /var/user/%s), so I was just wondering if %APPDATA% would be the sensible first location to try, perhaps followed by ~\AppData\Roaming if APPDATA not exists, and finally fall back to tempdir? (inspired by confuse)
Happy to try to code it up (would be my first Github contrib), although I'm pretty sure you know what you are doing.