Method: RQ::JobRunnerDaemon#waitpid2
- Defined in:
- lib/rq/jobrunnerdaemon.rb
#waitpid2(pid = -1,, flags = 0) ⇒ Object
–}}}
158 159 160 161 162 163 164 165 |
# File 'lib/rq/jobrunnerdaemon.rb', line 158 def waitpid2 pid = -1, flags = 0 #--{{{ pid = pid.pid if pid.respond_to? 'pid' pid, status = Process::waitpid2 pid, flags @runners.delete pid [pid, status] #--}}} end |