Changed args to find process information by id

pull/3113/head
Mark McDowall 11 years ago
parent a13d187473
commit c0fb53c7f6

@ -21,7 +21,7 @@ namespace NzbDrone.Mono
return monoProcesses.Where(c => return monoProcesses.Where(c =>
{ {
var processArgs = _processProvider.StartAndCapture("ps", String.Format("--pid {0} -o args=", c.Id)); var processArgs = _processProvider.StartAndCapture("ps", String.Format("-p {0} -o args=", c.Id));
return processArgs.Standard.Any(p => p.Contains(ProcessProvider.NZB_DRONE_PROCESS_NAME + ".exe") || return processArgs.Standard.Any(p => p.Contains(ProcessProvider.NZB_DRONE_PROCESS_NAME + ".exe") ||
p.Contains(ProcessProvider.NZB_DRONE_CONSOLE_PROCESS_NAME + ".exe")); p.Contains(ProcessProvider.NZB_DRONE_CONSOLE_PROCESS_NAME + ".exe"));

Loading…
Cancel
Save