Module: Process
- Defined in:
- lib/tagen/core/process.rb
Class Method Summary collapse
-
.exists?(pid) ⇒ Boolean
Check if the pid’s process is running.
Class Method Details
.exists?(pid) ⇒ Boolean
Note:
for linux only
Check if the pid’s process is running.
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 |