From 2abb663f6e20f9bc0f14ac00c0edeb57bf3f43e0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Feb 2009 21:20:17 -0800 Subject: Delete UNICORN_* environment variables in workers Workers have no business knowing these things... --- lib/unicorn.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 3389846..c0474c6 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -355,6 +355,8 @@ module Unicorn @start_ctx.clear @mode = @start_ctx = @workers = @rd_sig = @wr_sig = nil @listeners.each { |sock| set_cloexec(sock) } + ENV.delete('UNICORN_DAEMONIZE') + ENV.delete('UNICORN_FD') end # runs inside each forked worker, this sits around and waits -- cgit v1.2.3-24-ge0c7