Module: Process

Defined in:
/Users/martyn/cw/cw_clone/lib/cw/process.rb

Class Method Summary (collapse)

Class Method Details

+ (Boolean) exist?(pid)

Returns:

  • (Boolean)


5
6
7
8
9
10
# File '/Users/martyn/cw/cw_clone/lib/cw/process.rb', line 5

def exist?(pid)
  Process.kill(0, pid)
  true
rescue Errno::ESRCH
  false
end