about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-02-09 21:20:17 -0800
committerEric Wong <normalperson@yhbt.net>2009-02-09 21:20:17 -0800
commit2abb663f6e20f9bc0f14ac00c0edeb57bf3f43e0 (patch)
tree5a6d412d1c5fccfa1342037a58db54b3a9cfcd12 /lib
parent302beb7158a7217a3c8e5499ef98b33c284b1dd8 (diff)
downloadunicorn-2abb663f6e20f9bc0f14ac00c0edeb57bf3f43e0.tar.gz
Workers have no business knowing these things...
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn.rb2
1 files changed, 2 insertions, 0 deletions
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