From 7688fe59a8a80f473b276aa1ab01ff24cab6a653 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 13 Dec 2011 06:04:51 +0000 Subject: quiet possible IOError from SIGUSR1 (reopen logs) It's possible for a SIGUSR1 signal to be received in the worker immediately before calling IO.select. In that case, do not clutter logging with IOError and just process the reopen log request. --- lib/unicorn/http_server.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index c78b094..6e90564 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -625,6 +625,7 @@ class Unicorn::HttpServer rescue Errno::EBADF nr < 0 or return rescue => e + redo if nr < 0 && IOError === e Unicorn.log_error(@logger, "listen loop error", e) if worker end while worker end -- cgit v1.2.3-24-ge0c7