[Mono-bugs] [Bug 51445][Nor] New - System.Diagnostics.Process.GetProcesses() Not Implemented Properly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 12 May 2004 13:07:01 -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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=51445

--- shadow/51445	2004-05-12 13:07:01.000000000 -0400
+++ shadow/51445.tmp.7316	2004-05-12 13:07:01.000000000 -0400
@@ -0,0 +1,76 @@
+Bug#: 51445
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details: kernel 2.4.21
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: System
+AssignedTo: dick@ximian.com                            
+ReportedBy: ben@griffin.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Diagnostics.Process.GetProcesses() Not Implemented Properly
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+System.Diagnostics.Process.GetProcesses() returns only one process, itself.
+
+Steps to reproduce the problem:
+1. Compile/Run code supplied to demonstrate
+2. Sample output supplied also
+3. Sample Code:
+
+// Created to test System.Diagnostics.Process Class
+// Tests: Process.GetProcesses()
+
+
+using System;
+using System.Diagnostics;
+
+namespace proctest
+{
+        class ProcTest
+        {
+                static void Main(string[] args)
+                {
+                        Console.Out.WriteLine("ProcessList:");
+                        foreach(Process proc in Process.GetProcesses())
+                        {
+                                Console.Out.WriteLine(proc.ProcessName);
+                        }
+
+                }
+        }
+}
+
+
+Actual Results:
+--- snip ---
+ProcessList:
+proctest
+--- end ---
+
+Expected Results:
+
+More processes in the returned array (Process[])
+
+How often does this happen? 
+
+n/a
+
+
+Additional Information:
+
+------- Additional Comments From dick@ximian.com  2003-11-27 12:59 -------
+It will list all mono processes currently sharing the same shared
+memory segment.
+
+
+------- Additional Comments From miguel@ximian.com  2004-05-12 13:07 -------
+Dick, shouldnt we return all the system processes?