From: JongHeonChoi Date: Fri, 29 Jan 2021 09:48:03 +0000 (+0900) Subject: [Bug Fixed] Modify the exception handling when reading the status of "/proc/" (#47611) X-Git-Tag: submit/tizen/20210909.063632~3550 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20e2242732745ce27d014521c41bbb98cd69172d;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [Bug Fixed] Modify the exception handling when reading the status of "/proc/" (#47611) --- 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 --- 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;