module Process
Public Class Methods
running?(pid)
click to toggle source
# File lib/raad_totem/unix_daemon.rb, line 8 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
# File lib/raad_totem/unix_daemon.rb, line 8 def running?(pid) Process.getpgid(pid) != -1 rescue Errno::EPERM true rescue Errno::ESRCH false end