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:
authoravkarenow <avkarenow@tlen.pl>2021-08-11 04:45:40 +0300
committerGitHub <noreply@github.com>2021-08-11 04:45:40 +0300
commit99136cbf3183833b5d9dedb7943873fb8c3a8da5 (patch)
treefc9ec0cd0d55ede26d4b49c49d1ce755b3622aeb /core
parent1156eb9a5f1deadb05613ae0ab982faab9b1f5a3 (diff)
Remove checking for /proc existence (#17846)
Diffstat (limited to 'core')
-rw-r--r--core/CliMulti/Process.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/core/CliMulti/Process.php b/core/CliMulti/Process.php
index ca1aa91e91..fc27c6b7b8 100644
--- a/core/CliMulti/Process.php
+++ b/core/CliMulti/Process.php
@@ -236,10 +236,6 @@ class Process
$reasons[] = 'awk is not available or did not run as we would expect it to';
}
- if (!self::isProcFSMounted() && !SettingsServer::isMac()) {
- $reasons[] = 'procfs is not mounted';
- }
-
return $reasons;
}
@@ -287,21 +283,6 @@ class Process
return 0 == (int) $returnCode;
}
- /**
- * ps -e requires /proc
- * @return bool
- */
- private static function isProcFSMounted()
- {
- if (is_resource(@fopen('/proc', 'r'))) {
- return true;
- }
- // Testing if /proc is a resource with @fopen fails on systems with open_basedir set.
- // by using stat we not only test the existence of /proc but also confirm it's a 'proc' filesystem
- $type = @shell_exec('stat -f -c "%T" /proc 2>/dev/null');
- return strpos($type, 'proc') === 0;
- }
-
public static function getListOfRunningProcesses()
{
$processes = @shell_exec(self::PS_COMMAND . ' 2>/dev/null');