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 [EMAIL PROTECTED]

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

--- shadow/81720        2007-05-23 14:51:16.000000000 -0400
+++ shadow/81720.tmp.12711      2007-05-23 14:51:16.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 81720
+Product: Mono: Runtime
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] ThreadState.BackGround bit must be cleared when thread is 
stopped
+
+When a Thread is stopped, then the ThreadState.BackGround bit is cleared 
+on MS.
+
+To reproduce, compile and run the following code snippet:
+
+using System;
+using System.Threading;
+
+class Program
+{
+       static void Start ()
+       {
+       }
+
+       static void Main ()
+       {
+               Thread t = new Thread (new ThreadStart (Start));
+               t.IsBackground = true;
+               Console.WriteLine ("#1: " + t.ThreadState);
+               t.Start ();
+               t.Join ();
+               Console.WriteLine ("#2: " + t.ThreadState);
+       }
+}
+
+Expected result:
+
+#1: Background, Unstarted
+#2: Stopped
+
+Actual result:
+
+#1: Background, Unstarted
+#2: Background, Stopped
+
+I'll a unit test to ThreadTest.cs to prevent regressions.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to