about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/dtas/unix_accepted.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dtas/unix_accepted.rb b/lib/dtas/unix_accepted.rb
index 491f45f..2c82d2a 100644
--- a/lib/dtas/unix_accepted.rb
+++ b/lib/dtas/unix_accepted.rb
@@ -57,6 +57,8 @@ class DTAS::UNIXAccepted # :nodoc:
     begin
       begin
         msg, _, _ = io.recvmsg_nonblock(nread)
+      rescue Errno::EAGAIN
+        return :wait_readable
       rescue EOFError, SystemCallError
         return nil
       end