[Mono-bugs] [Bug 58275][Nor] New - Errors stopping background threads

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 10 May 2004 11:14:55 -0400 (EDT)

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 lluis@ximian.com.


--- shadow/58275	2004-05-10 11:14:55.000000000 -0400
+++ shadow/58275.tmp.1639	2004-05-10 11:14:55.000000000 -0400
@@ -0,0 +1,27 @@
+Bug#: 58275
+Product: Mono: Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Errors stopping background threads
+When an application ends, the runtime tries to stop the background
+threads using the thread abort signal. This is a source of problems
+since the thread may handle the signal after the application domain has
+been disposed.
+I'm attaching a patch. Before aborting a background, it sets the
+StopRequested state, which avoids throwing the Abort exception when the
+abort signal is handled. The patch also makes the main thread to wait for
+the background threads to be actually stopped. Any objection?