diff --git a/lib/coolie/master.rb b/lib/coolie/master.rb
index <HASH>..<HASH> 100644
--- a/lib/coolie/master.rb
+++ b/lib/coolie/master.rb
@@ -44,7 +44,7 @@ module Coolie
     private
 
     def process_name=(name)
-      $PROGRAM_NAME = name
+      $0 = name
     end
   end
 end
diff --git a/lib/coolie/worker.rb b/lib/coolie/worker.rb
index <HASH>..<HASH> 100644
--- a/lib/coolie/worker.rb
+++ b/lib/coolie/worker.rb
@@ -33,7 +33,7 @@ module Coolie
     end
 
     def process_name=(name)
-      $PROGRAM_NAME = name
+      $0 = name
     end
   end
 end
Trying $0 instead of $PROGRAM_NAME