# File lib/deep_test/warlock.rb, line 93
 93:     def running?(pid)
 94:       # Check if process is in existence
 95:       # The simplest way to do this is to send signal '0'
 96:       # (which is a single system call) that doesn't actually
 97:       # send a signal
 98:       begin
 99:         Process.kill(0, pid)
100:         return true
101:       rescue Errno::ESRCH
102:         return false
103:       rescue ::Exception   # for example on EPERM (process exists but does not belong to us)
104:         return true
105:       #rescue Errno::EPERM
106:       #  return false
107:       end
108:     end