Bug 28358 - System.Diagnostics.Process.GetProcesses() gives truncated results
Summary: System.Diagnostics.Process.GetProcesses() gives truncated results
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System (show other bugs)
Version: 3.12.0
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-03-24 05:44 UTC by alexprentl
Modified: 2015-03-26 05:22 UTC (History)
1 user (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description alexprentl 2015-03-24 05:44:59 UTC
Running this simple code in version 3.12.1 gives truncated results:

foreach (var proc in Process.GetProcesses())
  Console.WriteLine("Proc id={0}", proc.Id);

It only lists about half the actual processes running, as an example it only lists about the first 20 or so when compared to running "ps -ef". It was working fine in mono 3.8.0 but since the upgrade has problems. I'll will check mono 3.10.0 as well to help see if its a recent change.

Platform wise I'm running mono 3.12.1 on both a Raspberry Pi B & 2 (with Raspbian). It suggests an issue with the internal function GetProcesses_internal.
Comment 1 alexprentl 2015-03-26 05:22:08 UTC
I've also checked 3.10 and confirm its working ok in that version so must have been caused by a change between 3.10 and 3.12.

Note You need to log in before you can comment on or make changes to this bug.