[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
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;