Module: Process
- Defined in:
- lib/thin/daemonizing.rb
Class Method Summary collapse
-
.running?(pid) ⇒ Boolean
Returns
truethe process identied bypidis running.
Class Method Details
.running?(pid) ⇒ Boolean
Returns true the process identied by pid is running.
23 24 25 26 27 |
# File 'lib/thin/daemonizing.rb', line 23 def running?(pid) Process.getpgid(pid) != -1 rescue Errno::ESRCH false end |