mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
More mono cleanup
This commit is contained in:
parent
e40ccc49ad
commit
9539e4d481
1 changed files with 1 additions and 10 deletions
|
@ -330,16 +330,7 @@ namespace NzbDrone.Common.Processes
|
||||||
|
|
||||||
private List<Process> GetProcessesByName(string name)
|
private List<Process> GetProcessesByName(string name)
|
||||||
{
|
{
|
||||||
//TODO: move this to an OS specific class
|
var processes = Process.GetProcessesByName(name).ToList();
|
||||||
var monoProcesses = Process.GetProcessesByName("mono")
|
|
||||||
.Union(Process.GetProcessesByName("mono-sgen"))
|
|
||||||
.Where(process =>
|
|
||||||
process.Modules.Cast<ProcessModule>()
|
|
||||||
.Any(module =>
|
|
||||||
module.ModuleName.ToLower() == name.ToLower() + ".exe"));
|
|
||||||
|
|
||||||
var processes = Process.GetProcessesByName(name)
|
|
||||||
.Union(monoProcesses).ToList();
|
|
||||||
|
|
||||||
_logger.Debug("Found {0} processes with the name: {1}", processes.Count, name);
|
_logger.Debug("Found {0} processes with the name: {1}", processes.Count, name);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue