You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.117
Former-commit-id: 44f8fd0c4b66c828855b08eefcc53d59832c25a6
This commit is contained in:
parent
2a01a829a1
commit
4a084bd265
@ -508,9 +508,12 @@ namespace System.Diagnostics
|
||||
int size = 0;
|
||||
|
||||
for (int i = 0; i < processes.Length; i++) {
|
||||
var process = processes[i];
|
||||
try {
|
||||
if (String.Compare (processName, processes[i].ProcessName, true) == 0)
|
||||
processes [size++] = processes[i];
|
||||
if (String.Compare (processName, process.ProcessName, true) == 0)
|
||||
processes [size++] = process;
|
||||
else
|
||||
process.Dispose();
|
||||
} catch (SystemException) {
|
||||
/* The process might exit between GetProcesses_internal and GetProcessById */
|
||||
}
|
||||
|
Reference in New Issue
Block a user