[Mono-bugs] [Bug 75273][Cri] New - The 'process.HasExited' flag does not give a correct value

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 15 03:10:13 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 tjain at novell.com.

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

--- shadow/75273	2005-06-15 03:10:11.000000000 -0400
+++ shadow/75273.tmp.12973	2005-06-15 03:10:12.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 75273
+Product: Mono: Class Libraries
+Version: 1.1
+OS: NLD 9
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: tjain at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The 'process.HasExited' flag does not give a correct value
+
+Description of Problem:
+In my program, I am creating a new process. I read from the redirected 
+output/error streams of the process till the timeout is occuring or the 
+streams close. (The streams will close when the process ends) 
+After this, I make a check to see if the process has exited by using 
+the 'process.HasExited'flag.
+
+Even in the case when the process has exited, and the error/output 
+streams have closed, the 'process.HasExited' flag returns a false value, 
+which is incorrect.
+
+I see this problem in the latest version of mono i.e. 1.1.7.2 In the 
+earlier version of mono like (1.1.3) this works fine and returns a true 
+value. 
+
+Steps to reproduce the problem:
+1. Compile and Execute the attached test code
+
+
+Actual Results:
+In this test code, there is a class called Executor which launches a new 
+process to do the operation 'cp a b'. The timeout value is set to 20 
+secs, but this process would end much before the timeout occurs. Still 
+pr.HasExited returns a false value.
+
+Expected Results:
+pr.HasExited should give a true value.
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+When this testcode is executed with mono version 1.1.3, pr.hasExited 
+correctly returns a true value.


More information about the mono-bugs mailing list