about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-12-13 06:04:51 +0000
committerEric Wong <normalperson@yhbt.net>2011-12-13 06:04:51 +0000
commit7688fe59a8a80f473b276aa1ab01ff24cab6a653 (patch)
treea1dbd7b2c64ceee79c6568aa86768e7841364d87
parent2cc0db7761ee4286c5ccbc48395c70c41d402119 (diff)
downloadunicorn-7688fe59a8a80f473b276aa1ab01ff24cab6a653.tar.gz
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.
-rw-r--r--lib/unicorn/http_server.rb1
1 files changed, 1 insertions, 0 deletions
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