Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Revert "Fix case of $0 truncating text due to being frozen"
Browse files Browse the repository at this point in the history
This reverts commit f44436a.
  • Loading branch information
defunkt committed Jul 9, 2010
1 parent 466ab38 commit c15eef1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/resque/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,6 @@ def worker_pids
# Procline is always in the format of:
# resque-VERSION: STRING
def procline(string)
# Get around frozen $0
# Thanks to: http://www.ruby-forum.com/topic/187083#817010
$procline = $0
alias $PROC_LINE $0
alias $0 $procline
trace_var(:$0) {|val| $PROC_LINE = val}

$0 = "resque-#{Resque::Version}: #{string}"
log! $0
end
Expand Down

0 comments on commit c15eef1

Please sign in to comment.