Class: ScriptCore::Spawner
Instance Method Summary collapse
Instance Method Details
#kill(signal, pid) ⇒ Object
21 22 23 |
# File 'lib/script_core/spawner.rb', line 21 def kill(signal, pid) Process.kill(signal, pid) end |
#spawn ⇒ Object
5 6 7 |
# File 'lib/script_core/spawner.rb', line 5 def spawn(*) super end |
#wait(pid, flags = 0) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/script_core/spawner.rb', line 9 def wait(pid, flags = 0) _pid, status = Process.wait2(pid, flags) return unless status if status.signaled? 255 + status.termsig else status.exitstatus end end |