mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Trimming output of ps -A
to remove prepended whitespace.
This commit is contained in:
parent
cff5d779b4
commit
5fb34c3a90
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ class Resque_Worker
|
|||
$pids = array();
|
||||
exec('ps -A -o pid,command | grep [r]esque', $cmdOutput);
|
||||
foreach($cmdOutput as $line) {
|
||||
list($pids[],) = explode(' ', $line, 2);
|
||||
list($pids[],) = explode(' ', trim($line), 2);
|
||||
}
|
||||
return $pids;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue