[Mono-bugs] [Bug 76337][Maj] New -
System.Diagnostics.Process.HasExited returns true before
process has exited
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Oct 5 13:38:15 EDT 2005
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 colin at breame.net.
http://bugzilla.ximian.com/show_bug.cgi?id=76337
--- shadow/76337 2005-10-05 13:38:15.000000000 -0400
+++ shadow/76337.tmp.3273 2005-10-05 13:38:15.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 76337
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: linux 2.6.13.1 mono 1.1.9.1
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: colin at breame.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Diagnostics.Process.HasExited returns true before process has exited
+
+Description of Problem:
+System.Diagnostics.Process.HasExited returns true before process has
+exited.
+
+Steps to reproduce the problem:
+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:
+$ mono test.exe 'sleep 10000000s'
+process.HasExited: False
+process.HasExited: False
+(repeated for about 10 seconds)....
+process.HasExited: True
+process.HasExited: True
+....
+
+Expected Results:
+I would expect it to return False for a least 10000000s.
+
+How often does this happen?
+Always.
More information about the mono-bugs
mailing list