From 1925c176d2b822c6c17aec472e318669f054beda Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 10 Oct 2009 12:20:12 -0700 Subject: thread_spawn: non-blocking accept() shouldn't EINTR Something is probably wrong with the OS if it does, so make sure it gets logged and hopefully reported. --- lib/rainbows/thread_spawn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/thread_spawn.rb') diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index cafdd33..99647d5 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -42,7 +42,7 @@ module Rainbows end c = begin l.accept_nonblock - rescue Errno::EAGAIN, Errno::EINTR, Errno::ECONNABORTED + rescue Errno::EAGAIN, Errno::ECONNABORTED next end threads.add(Thread.new(c) { |c| process_client(c) }) -- cgit v1.2.3-24-ge0c7