[Mono-bugs] [Bug 75796][Maj] New - Background threads not aborted on exit

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Aug 12 12:21:59 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 martin at ximian.com.

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

--- shadow/75796	2005-08-12 12:21:59.000000000 -0400
+++ shadow/75796.tmp.17612	2005-08-12 12:21:59.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 75796
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: io-layer
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: martin at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Background threads not aborted on exit
+
+The following test program exists after one second when running on .NET and
+blocks forever when running in mono:
+
+=====
+using System;
+using System.Threading;
+
+class X
+{
+        static ManualResetEvent the_event;
+
+        static void Main ()
+        {
+                the_event = new ManualResetEvent (false);
+
+                Thread thread = new Thread (thread_main);
+                thread.IsBackground = true;
+                thread.Start ();
+
+                Thread.Sleep (1000);
+        }
+
+        static void thread_main ()
+        {
+                the_event.WaitOne ();
+        }
+}
+=====


More information about the mono-bugs mailing list