From c719497c6db220a9f58c71970f2370cb2e6c99c3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 Jun 2011 00:09:32 +0000 Subject: http_server: get rid of EINTR checks Ruby IO.select never raises that, actually --- lib/unicorn/http_server.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 581471b..a590ab0 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -332,7 +332,6 @@ class Unicorn::HttpServer reexec end end - rescue Errno::EINTR rescue => e logger.error "Unhandled master loop exception #{e.inspect}." logger.error e.backtrace.join("\n") @@ -650,8 +649,6 @@ class Unicorn::HttpServer # timeout used so we can detect parent death: ret = IO.select(LISTENERS, nil, SELF_PIPE, timeout) and ready = ret[0] - rescue Errno::EINTR - ready = LISTENERS.dup rescue Errno::EBADF nr < 0 or return rescue => e -- cgit v1.2.3-24-ge0c7