Class: Daemons::Pid

Inherits:
Object
  • Object
show all
Defined in:
lib/monkey_patches.rb

Class Method Summary collapse

Class Method Details

.running?(pid) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/monkey_patches.rb', line 4

def self.running?(pid)
  return File.exist?("/proc/#{pid}")
end