Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorleftmostlane <jason.miele@outlook.com>2020-08-28 00:50:37 +0300
committerGitHub <noreply@github.com>2020-08-28 00:50:37 +0300
commit54544e88d05ae08b2c38b79cc496144a3d4543fc (patch)
tree8f583402eb453237626383f69969510c8b4d1343 /core
parenta2b188e2279d0b11b423d2b1d0c41673160dd410 (diff)
ps -x for compatibility with SELinux (#15508)
Diffstat (limited to 'core')
-rw-r--r--core/CliMulti/Process.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/CliMulti/Process.php b/core/CliMulti/Process.php
index 4d416d7923..7348e8ce6a 100644
--- a/core/CliMulti/Process.php
+++ b/core/CliMulti/Process.php
@@ -249,7 +249,7 @@ class Process
public static function getListOfRunningProcesses()
{
- $processes = `ps ex 2>/dev/null`;
+ $processes = `ps x 2>/dev/null`;
if (empty($processes)) {
return array();
}
@@ -261,7 +261,7 @@ class Process
*/
public static function getRunningProcesses()
{
- $ids = explode("\n", trim(`ps ex 2>/dev/null | awk '! /defunct/ {print $1}' 2>/dev/null`));
+ $ids = explode("\n", trim(`ps x 2>/dev/null | awk '! /defunct/ {print $1}' 2>/dev/null`));
$ids = array_map('intval', $ids);
$ids = array_filter($ids, function ($id) {