Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Fixed ps Command so that it is compatible with Solaris systems
Browse files Browse the repository at this point in the history
  • Loading branch information
arbet committed Apr 28, 2015
1 parent b287e5c commit bc6b543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Resque/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ public function pruneDeadWorkers()
public function workerPids()
{
$pids = array();
exec('ps -A -o pid,command | grep [r]esque', $cmdOutput);
exec('ps -A -o pid,comm | grep [r]esque', $cmdOutput);
foreach ($cmdOutput as $line) {
list($pids[]) = explode(' ', trim($line), 2);
}
Expand Down

0 comments on commit bc6b543

Please sign in to comment.