mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8329995: Restricted access to /proc can cause JFR initialization to crash
Reviewed-by: dholmes, egahlin
This commit is contained in:
@@ -847,7 +847,7 @@ SystemProcessInterface::SystemProcesses::ProcessIterator::ProcessIterator() {
|
||||
bool SystemProcessInterface::SystemProcesses::ProcessIterator::initialize() {
|
||||
_dir = os::opendir("/proc");
|
||||
_entry = nullptr;
|
||||
_valid = true;
|
||||
_valid = _dir != nullptr; // May be null if /proc is not accessible.
|
||||
next_process();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user