From a845b01e3688fd981101f953fef41641264d5403 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Wed, 25 Nov 2015 11:04:27 +0100 Subject: Make app shutdown wait for secondary threads This change makes the CoreCLR behavior the same as the desktop CLR w.r.t. the app shutdown and secondary threads. Now the application waits for secondary threads to exit before exiting. --- src/vm/appdomainnative.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vm/appdomainnative.cpp') diff --git a/src/vm/appdomainnative.cpp b/src/vm/appdomainnative.cpp index 6dd2ffd6f7..ebc7d3339d 100644 --- a/src/vm/appdomainnative.cpp +++ b/src/vm/appdomainnative.cpp @@ -538,7 +538,7 @@ INT32 AppDomainNative::ExecuteAssemblyHelper(Assembly* pAssembly, EE_TRY_FOR_FINALLY(Param *, pParam, ¶m) { - pParam->iRetVal = pParam->pAssembly->ExecuteMainMethod(pParam->pStringArgs); + pParam->iRetVal = pParam->pAssembly->ExecuteMainMethod(pParam->pStringArgs, TRUE /* waitForOtherThreads */); } EE_FINALLY { -- cgit v1.2.3