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