[Mono-bugs] [Bug 58780][Wis] New - Process.GetProcesses() does not return all processes.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 20 May 2004 22:01:54 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by niel@bornstein.atlanta.ga.us.
http://bugzilla.ximian.com/show_bug.cgi?id=58780
--- shadow/58780 2004-05-20 22:01:54.000000000 -0400
+++ shadow/58780.tmp.26805 2004-05-20 22:01:54.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 58780
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details: Mac OS X 10.3, Debian, Red Hat
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: niel@bornstein.atlanta.ga.us
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Process.GetProcesses() does not return all processes.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Process.GetProcesses() sometimes only returns CLR processes.
+
+Steps to reproduce the problem:
+1. Compile and run this code:
+using System;
+using System.Diagnostics;
+
+public class ListProcesses {
+ public static void Main(string [] args) {
+ foreach (Process process in Process.GetProcesses()) {
+ Console.WriteLine("Process {0}: {1}",
+ process.Id, process.ProcessName);
+ }
+ }
+}
+
+Actual Results:
+$ mono ListProcesses.exe
+Process 17774: ListProcesses
+
+Expected Results:
+$ mono ListProcesses.exe
+Process 17774: ListProcesses
+Process 10614: bash
+...
+(MSDN says it should return all running processes)
+
+How often does this happen?
+It's intermittent. Sometimes after running a different Mono .exe, it shows
+bash as well. But it never shows any processes running under different userids.
+
+Additional Information: