mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 03:44:13 -04:00
19 lines
620 B
Plaintext
19 lines
620 B
Plaintext
$NetBSD: patch-as,v 1.4 2014/11/30 08:40:51 spz Exp $
|
|
|
|
From FreeBSD: https://bugzilla.novell.com/show_bug.cgi?id=528830
|
|
|
|
--- mono/metadata/appdomain.c.orig 2014-10-04 09:27:43.000000000 +0000
|
|
+++ mono/metadata/appdomain.c
|
|
@@ -2476,6 +2476,11 @@ mono_domain_try_unload (MonoDomain *doma
|
|
CloseHandle (thread_handle);
|
|
unload_data_unref (thread_data);
|
|
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);
|