[Bug Fixed] Modify the exception handling when reading the status of "/proc/" (#47611)
authorJongHeonChoi <j-h.choi@samsung.com>
Fri, 29 Jan 2021 09:48:03 +0000 (18:48 +0900)
committerGitHub <noreply@github.com>
Fri, 29 Jan 2021 09:48:03 +0000 (10:48 +0100)
src/libraries/Common/src/Interop/Linux/procfs/Interop.ProcFsStat.TryReadStatusFile.cs

index 503f972..7ce3ec3 100644 (file)
@@ -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;