about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-15 01:10:07 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-15 01:27:17 +0000
commit4beeb52b1c52ea4486dea13cebe2a8438a9f2139 (patch)
treee1f57a5e205755c62e4a02d6767ccba6b1a51633 /bin
parente9e7a1c7c1778ed7cd7c724b26362d1f89b2801c (diff)
downloadunicorn-4beeb52b1c52ea4486dea13cebe2a8438a9f2139.tar.gz
There's absolutely no need to keep the OptionParser around in
worker processes.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn1
-rwxr-xr-xbin/unicorn_rails1
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/unicorn b/bin/unicorn
index f476a33..9962b58 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -106,6 +106,7 @@ op = OptionParser.new("", 24, '  ') do |opts|
 end
 
 app = Unicorn.builder(ARGV[0] || 'config.ru', op)
+op = nil
 
 if $DEBUG
   require 'pp'
diff --git a/bin/unicorn_rails b/bin/unicorn_rails
index 860a9ce..4bd599f 100755
--- a/bin/unicorn_rails
+++ b/bin/unicorn_rails
@@ -186,6 +186,7 @@ def rails_builder(ru, op, daemonize)
 end
 
 app = rails_builder(ARGV[0], op, rackup_opts[:daemonize])
+op = nil
 
 if $DEBUG
   require 'pp'