Module: Process
- Defined in:
- lib/wakame/daemonize.rb
Class Method Summary collapse
-
.running?(pid) ⇒ Boolean
Returns
true
the process identied bypid
is running.
Class Method Details
.running?(pid) ⇒ Boolean
Returns true
the process identied by pid
is running.
8 9 10 11 12 |
# File 'lib/wakame/daemonize.rb', line 8 def running?(pid) Process.getpgid(pid) != -1 rescue Errno::ESRCH false end |