Returns true the process identied by pid is running.
true
pid
# File lib/thin/daemonizing.rb, line 6 def running?(pid) Process.getpgid(pid) != -1 rescue Errno::EPERM true rescue Errno::ESRCH false end