[Mono-bugs] [Bug 39267][Nor] New - System.Diagnostics.Process.HasExited always return false
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Fri, 7 Mar 2003 04:53:30 -0500 (EST)
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 yannis.bres@sophia.inria.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=39267
--- shadow/39267 Fri Mar 7 04:53:30 2003
+++ shadow/39267.tmp.32445 Fri Mar 7 04:53:30 2003
@@ -0,0 +1,67 @@
+Bug#: 39267
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details: XP
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: Yannis.BRES@sophia.inria.fr
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Diagnostics.Process.HasExited always return false
+
+Description of Problem:
+System.Diagnostics.Process.HasExited always return false
+
+Steps to reproduce the problem:
+Compile and run the following program with dir or ls as argument (for
+instance):
+using System;
+using System.Diagnostics;
+using System.Threading;
+
+class System_Diagnostics_Process_HasExited
+{
+ public static void Main( String[] args )
+ {
+ Process process= Process.Start( args[0] );
+
+ while (true)
+ {
+ Console.Error.WriteLine( "process.HasExited: {0}",
+process.HasExited );
+ Thread.Sleep( 250 );
+ }
+ }
+}
+
+Actual Results:
+< process output >
+process.HasExited: False
+process.HasExited: False
+process.HasExited: False
+...
+<until killed>
+
+Expected Results:
+< process output >
+process.HasExited: False
+process.HasExited: False
+... for a while ...
+process.HasExited: True
+process.HasExited: True
+process.HasExited: True
+...
+<until killed>
+
+How often does this happen?
+Always
+
+Additional Information:
+Your keyword list sucks