Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit fee1721

Browse files
committed
Merge pull request #2407 from stephentoub/remove_modules_throw_linux
Remove unnecessary throw in ProcessManager.GetModulesInfos on Linux
2 parents 62f2005 + e199474 commit fee1721

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/System.Diagnostics.Process/src/System/Diagnostics/ProcessManager.Linux.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ internal static ModuleInfo[] GetModuleInfos(int processId)
6767
}
6868

6969
// Return the set of modules found
70-
if (modules.Count == 0)
71-
{
72-
// Match Windows behavior when failing to enumerate modules
73-
throw new Win32Exception(SR.EnumProcessModuleFailed);
74-
}
7570
return modules.ToArray();
7671
}
7772

0 commit comments

Comments
 (0)