Skip to content

Commit

Permalink
use ruby, avoid shelling out. google++
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Apr 18, 2012
1 parent 5d7d26f commit 5928531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def to_s

# chomp'd hostname of this machine
def hostname
@hostname ||= `hostname`.chomp
Socket.gethostname
end

# Returns Integer PID of running worker
Expand Down

0 comments on commit 5928531

Please sign in to comment.