From 20e2242732745ce27d014521c41bbb98cd69172d Mon Sep 17 00:00:00 2001 From: JongHeonChoi Date: Fri, 29 Jan 2021 18:48:03 +0900 Subject: [PATCH] [Bug Fixed] Modify the exception handling when reading the status of "/proc/" (#47611) --- .../src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4