We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 911de01 commit 892ee09Copy full SHA for 892ee09
lib/resque/worker.rb
@@ -447,7 +447,7 @@ def hostname
447
# Returns an array of string pids of all the other workers on this
448
# machine. Useful when pruning dead workers on startup.
449
def worker_pids
450
- `ps -A -o pid,command | grep [r]esque`.split("\n").map do |line|
+ `ps -A -o pid,comm | grep [r]esque`.split("\n").map do |line|
451
line.split(' ')[0]
452
end
453
0 commit comments