diff options
author | avkarenow <avkarenow@tlen.pl> | 2021-08-11 04:45:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 04:45:40 +0300 |
commit | 99136cbf3183833b5d9dedb7943873fb8c3a8da5 (patch) | |
tree | fc9ec0cd0d55ede26d4b49c49d1ce755b3622aeb /core | |
parent | 1156eb9a5f1deadb05613ae0ab982faab9b1f5a3 (diff) |
Remove checking for /proc existence (#17846)
Diffstat (limited to 'core')
-rw-r--r-- | core/CliMulti/Process.php | 19 |
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'); |