diff --git a/lib/solid_queue/processes/interruptible.rb b/lib/solid_queue/processes/interruptible.rb index 67173aeb..ebf5f39e 100644 --- a/lib/solid_queue/processes/interruptible.rb +++ b/lib/solid_queue/processes/interruptible.rb @@ -21,7 +21,7 @@ def interruptible_sleep(time) if time > 0 && self_pipe[:reader].wait_readable(time) loop { self_pipe[:reader].read_nonblock(SELF_PIPE_BLOCK_SIZE) } end - rescue Errno::EAGAIN, Errno::EINTR + rescue Errno::EAGAIN, Errno::EINTR, IO::EWOULDBLOCKWaitReadable end # Self-pipe for signal-handling (http://cr.yp.to/docs/selfpipe.html)