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
[Validate]
Generated with the Darkfish Rdoc Generator 2.