mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 11:20:04 -04:00
19 lines
634 B
Plaintext
19 lines
634 B
Plaintext
$NetBSD: patch-as,v 1.2 2013/05/29 11:11:12 wiz Exp $
|
|
|
|
From FreeBSD: https://bugzilla.novell.com/show_bug.cgi?id=528830
|
|
|
|
--- mono/metadata/appdomain.c.orig 2012-12-05 17:44:33.000000000 +0000
|
|
+++ mono/metadata/appdomain.c
|
|
@@ -2452,6 +2452,11 @@ mono_domain_try_unload (MonoDomain *doma
|
|
/* The icall wrapper will execute the abort */
|
|
CloseHandle (thread_handle);
|
|
return;
|
|
+ } else if (!mono_thread_has_appdomain_ref (mono_thread_current (), domain) && !(mono_thread_interruption_requested ())) {
|
|
+ if (!domain->friendly_name) {
|
|
+ CloseHandle (thread_handle);
|
|
+ return;
|
|
+ }
|
|
}
|
|
}
|
|
CloseHandle (thread_handle);
|