Module: Process

Defined in:
lib/serverside/core_ext.rb

Overview

Process extensions.

Class Method Summary collapse

Class Method Details

.exists?(pid) ⇒ Boolean

Checks for the existance of a process.

Returns:

  • (Boolean)


98
99
100
# File 'lib/serverside/core_ext.rb', line 98

def self.exists?(pid)
  getpgid(pid) && true rescue false
end