Module: Process

Defined in:
lib/tagen/core/process.rb

Class Method Summary collapse

Class Method Details

.exists?(pid) ⇒ Boolean

Note:

for linux only

Check if the pid’s process is running.

Raises:

  • (NotImplementedError)


9
10
11
12
# File 'lib/tagen/core/process.rb', line 9

def self.exists?(pid)
  raise NotImplementedError unless linux?
  File.exists?("/proc/#{pid}")
end