Module: Process

Defined in:
lib/isono/daemonize.rb

Class Method Summary collapse

Class Method Details

.running?(pid) ⇒ Boolean

Returns true the process identied by pid is running.

Returns:

  • (Boolean)


8
9
10
11
12
# File 'lib/isono/daemonize.rb', line 8

def running?(pid)
  Process.getpgid(pid) != -1
rescue Errno::ESRCH
  false
end