Skip to content

Commit c15eef1

Browse files
committed
Revert "Fix case of $0 truncating text due to being frozen"
This reverts commit f44436a.
1 parent 466ab38 commit c15eef1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/resque/worker.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,6 @@ def worker_pids
456456
# Procline is always in the format of:
457457
# resque-VERSION: STRING
458458
def procline(string)
459-
# Get around frozen $0
460-
# Thanks to: http://www.ruby-forum.com/topic/187083#817010
461-
$procline = $0
462-
alias $PROC_LINE $0
463-
alias $0 $procline
464-
trace_var(:$0) {|val| $PROC_LINE = val}
465-
466459
$0 = "resque-#{Resque::Version}: #{string}"
467460
log! $0
468461
end

0 commit comments

Comments
 (0)