about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-02 03:14:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-02 03:14:56 -0700
commitd6087cacfb1b40199637fc8877f1fa93bb314257 (patch)
treeb16cb3e79e5e626cf1174530798dee405d715b97
parent99a1de487400577affdc5e22da253cc710735956 (diff)
downloadunicorn-d6087cacfb1b40199637fc8877f1fa93bb314257.tar.gz
Just because I know regular expressions doesn't
mean I *have* to use them...
-rw-r--r--lib/unicorn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index 02e0363..d73317d 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -589,7 +589,7 @@ module Unicorn
     end
 
     def proc_name(tag)
-      $0 = ([ @start_ctx[:zero].sub(%r{\A.*?([^/]+)\z}, '\1'), tag ] +
+      $0 = ([ File.basename(@start_ctx[:zero]), tag ] +
               @start_ctx[:argv]).join(' ')
     end