samullen / pidfile Goto Github PK
View Code? Open in Web Editor NEWSimple library to create a PID locking file for processes which need to worry about that sort of thing
License: MIT License
Simple library to create a PID locking file for processes which need to worry about that sort of thing
License: MIT License
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.
I get following warning when using pidfile gem with Ruby v2.1.0:
/usr/local/rvm/gems/ruby-2.1.0/gems/pidfile-0.3.0/lib/pidfile.rb:109: warning: File.exists? is a deprecated name, use File.exist? instead
I know how to fix that (fork & pull request), put how does this possible fix get into RubyGems so that I get in when installing the gem?
I ask this also because, it seems I still have the old version where default pidfile directory is /tmp instead of /var/run.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.