Skip to content

Commit d036fbf

Browse files
joshleblancrosa
authored andcommitted
rescue from EWOULDBLOCKWaitReadable
1 parent 3a4b24c commit d036fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/solid_queue/processes/interruptible.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def interruptible_sleep(time)
2828
if time > 0 && self_pipe[:reader].wait_readable(time)
2929
loop { self_pipe[:reader].read_nonblock(SELF_PIPE_BLOCK_SIZE) }
3030
end
31-
rescue Errno::EAGAIN, Errno::EINTR
31+
rescue Errno::EAGAIN, Errno::EINTR, IO::EWOULDBLOCKWaitReadable
3232
end
3333

3434
# Self-pipe for signal-handling (http://cr.yp.to/docs/selfpipe.html)

0 commit comments

Comments
 (0)