Skip to content

Commit 5928531

Browse files
committed
use ruby, avoid shelling out. google++
1 parent 5d7d26f commit 5928531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def to_s
474474

475475
# chomp'd hostname of this machine
476476
def hostname
477-
@hostname ||= `hostname`.chomp
477+
Socket.gethostname
478478
end
479479

480480
# Returns Integer PID of running worker

0 commit comments

Comments
 (0)