Method: Open4.alive

Defined in:
lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb

.alive(pid) ⇒ Object



384
385
386
387
388
389
390
391
392
393
394
# File 'lib/crazy_ivan/vendor/open4-1.0.1/lib/open4.rb', line 384

def alive pid
#--{{{

  pid = Integer pid
  begin
    Process.kill 0, pid
    true
  rescue Errno::ESRCH
    false
  end
#--}}}

end