about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-13 07:34:31 +0000
committerEric Wong <normalperson@yhbt.net>2011-04-13 07:35:27 +0000
commitcabbc6ce06487619431af102378aefa08d55f9f1 (patch)
treee1bbb6794a76ce506c11c0e1877ad5f9147c69e4
parentc1322a721d9039f54da97cf50de49f2affbfff37 (diff)
downloadunicorn-cabbc6ce06487619431af102378aefa08d55f9f1.tar.gz
They should then recover and inherit writable descriptors
from the master when it respawns.
-rw-r--r--lib/unicorn/http_server.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb
index db150f3..07d0b4f 100644
--- a/lib/unicorn/http_server.rb
+++ b/lib/unicorn/http_server.rb
@@ -568,6 +568,9 @@ class Unicorn::HttpServer
     Unicorn::Util.reopen_logs
     logger.info "worker=#{worker_nr} done reopening logs"
     init_self_pipe!
+    rescue => e
+      logger.error(e) rescue nil
+      exit!(77) # EX_NOPERM in sysexits.h
   end
 
   # runs inside each forked worker, this sits around and waits