module Process
Public Class Methods
running?(pid)
click to toggle source
Returns true
the process identied by pid
is
running.
# File lib/thin/daemonizing.rb, line 6 def running?(pid) Process.getpgid(pid) != -1 rescue Errno::EPERM true rescue Errno::ESRCH false end
Private Instance Methods
running?(pid)
click to toggle source
Returns true
the process identied by pid
is
running.
# File lib/thin/daemonizing.rb, line 6 def running?(pid) Process.getpgid(pid) != -1 rescue Errno::EPERM true rescue Errno::ESRCH false end