Module: Process
- Defined in:
- lib/core_ext/process.rb
Class Method Summary collapse
Class Method Details
.alive?(pid) ⇒ Boolean
2 3 4 5 6 7 8 9 |
# File 'lib/core_ext/process.rb', line 2 def self.alive?(pid) begin Process.kill(0, pid) true rescue Errno::ESRCH false end end |