about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
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