projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Bug Fixed] Modify the exception handling when reading the status of "/proc/" (#47611)
[platform/upstream/dotnet/runtime.git]
/
src
/
libraries
/
Common
/
src
/
Interop
/
Linux
/
procfs
/
Interop.ProcFsStat.TryReadStatusFile.cs
diff --git
a/src/libraries/Common/src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs
b/src/libraries/Common/src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs
index
503f972
..
7ce3ec3
100644
(file)
--- a/
src/libraries/Common/src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs
+++ b/
src/libraries/Common/src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs
@@
-181,7
+181,7
@@
internal static partial class Interop
}
}
}
- catch (IOException)
+ catch (
Exception ex) when (ex is IOException || ex.InnerException is
IOException)
{
contents = null;
return false;