about summary refs log tree commit homepage
path: root/lib/unicorn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-04 11:27:50 -0800
committerEric Wong <normalperson@yhbt.net>2009-03-04 11:27:50 -0800
commit279e1b0d4bf27e759d46460035dd6dacccef35f7 (patch)
tree820c9b19102dcc25f66057fc4169825226f30d1e /lib/unicorn.rb
parent551789f8619b567333bbf41020323f4e1624841c (diff)
downloadunicorn-279e1b0d4bf27e759d46460035dd6dacccef35f7.tar.gz
This is useful for freeing certain resources you
do NOT want passed to child processes.
Diffstat (limited to 'lib/unicorn.rb')
-rw-r--r--lib/unicorn.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 0727456..d442f63 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -327,6 +327,7 @@ module Unicorn
         Dir.chdir(@start_ctx[:cwd])
         cmd = [ @start_ctx[:zero] ] + @start_ctx[:argv]
         logger.info "executing #{cmd.inspect} (in #{Dir.pwd})"
+        @before_exec.call(self) if @before_exec
         exec(*cmd)
       end
     end