lib/pitchfork/worker.rb in pitchfork-0.9.0 vs lib/pitchfork/worker.rb in pitchfork-0.10.0

- old
+ new

@@ -137,9 +137,17 @@ @exiting = true end success end + def hard_kill(sig) + Process.kill(sig, pid) + end + + def hard_timeout! + hard_kill(:KILL) + end + # this only runs when the Rack app.call is not running # act like a listener def accept_nonblock(exception: nil) # :nodoc: loop do case buf = @to_io.recvmsg_nonblock(exception: false)