Git Product home page Git Product logo

pidfile's People

Contributors

rehevkor5 avatar samullen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pidfile's Issues

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.

File.exists? is deprecated (ruby 2.1.0)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.