From 5d2284afdc2d4f4ff122394ae5fd78a32cb8c09e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Jun 2011 23:54:47 +0000 Subject: runtime stack size reductions This reduces the size of `caller` by 5 frames, which should make backtraces easier-to-read, raising exceptions less expensive, and reduce GC runtime. --- bin/unicorn | 2 +- bin/unicorn_rails | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/unicorn b/bin/unicorn index f8c20dc..f476a33 100755 --- a/bin/unicorn +++ b/bin/unicorn @@ -117,4 +117,4 @@ if $DEBUG end Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize] -Unicorn.run(app, options) +Unicorn::HttpServer.new(app, options).start.join diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 58c232b..860a9ce 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -205,4 +205,4 @@ if rackup_opts[:daemonize] options[:pid] = "tmp/pids/unicorn.pid" Unicorn::Launcher.daemonize!(options) end -Unicorn.run(app, options) +Unicorn::HttpServer.new(app, options).start.join -- cgit v1.2.3-24-ge0c7