diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-12-13 06:04:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-12-13 06:04:51 +0000 |
commit | 7688fe59a8a80f473b276aa1ab01ff24cab6a653 (patch) | |
tree | a1dbd7b2c64ceee79c6568aa86768e7841364d87 /lib/unicorn/http_server.rb | |
parent | 2cc0db7761ee4286c5ccbc48395c70c41d402119 (diff) | |
download | unicorn-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.
Diffstat (limited to 'lib/unicorn/http_server.rb')
-rw-r--r-- | lib/unicorn/http_server.rb | 1 |
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 |