Skip to content
Extraits de code Groupes Projets
Valider 20a6b713 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fixes #5842, use -x option when invoking ps in asynchronous process execution...

Fixes #5842, use -x option when invoking ps in asynchronous process execution code so processes that aren't attached to the terminal will be returned. Not using it causes climulti:request commands to fail when being executed by cron on some systems. The command will return early w/ no data.
parent 53e4bc25
Chargement en cours
......@@ -125,7 +125,7 @@ class Process
}
$lockedPID = trim($content);
$runningPIDs = explode("\n", trim( `ps -e | awk '{print $1}'` ));
$runningPIDs = explode("\n", trim( `ps -ex | awk '{print $1}'` ));
return !empty($lockedPID) && in_array($lockedPID, $runningPIDs);
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter