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
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