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 06bf675 commit 2cbc85aCopy full SHA for 2cbc85a
lib/resque/worker.rb
@@ -498,7 +498,7 @@ def linux_worker_pids
498
# Returns an Array of string pids of all the other workers on this
499
# machine. Useful when pruning dead workers on startup.
500
def solaris_worker_pids
501
- `ps -A -o pid,comm | grep ruby | grep -v grep | grep -v "resque-web"`.split("\n").map do |line|
+ `ps -A -o pid,comm | grep [r]uby | grep -v "resque-web"`.split("\n").map do |line|
502
real_pid = line.split(' ')[0]
503
pargs_command = `pargs -a #{real_pid} 2>/dev/null | grep [r]esque | grep -v "resque-web"`
504
if pargs_command.split(':')[1] == " resque-#{Resque::Version}"
0 commit comments