about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-03-01 10:33:41 +0000
committerEric Wong <normalperson@yhbt.net>2010-03-01 10:34:38 +0000
commit98d605423b3a563de7b2d0b5f37695a4cf5bed7a (patch)
tree572df5ec7b5a15003953850de7d24261ff78900b
parent7dde8d1402a44e2997fa86ff5e3cf89c4ca6d82a (diff)
downloadzbatery-98d605423b3a563de7b2d0b5f37695a4cf5bed7a.tar.gz
disable more Unicorn methods
init_self_pipe! and trap_deferred are worthless and
possibly harmful to us
-rw-r--r--lib/zbatery.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zbatery.rb b/lib/zbatery.rb
index b2eb7ad..fb05318 100644
--- a/lib/zbatery.rb
+++ b/lib/zbatery.rb
@@ -60,6 +60,7 @@ module Zbatery
 
     # no-op
     def maintain_worker_count; end
+    def init_self_pipe!; end
 
     # can't just do a graceful exit if reopening logs fails, so we just
     # continue on...
@@ -71,6 +72,10 @@ module Zbatery
         logger.error "failed reopening logs #{e.message}"
     end
 
+    def trap_deferred(sig)
+      # nothing
+    end
+
     def join
       begin
         trap(:INT) { stop(false) } # Mongrel trapped INT for Win32...