diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2015-11-25 11:04:27 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2015-11-25 13:24:35 +0100 |
commit | a845b01e3688fd981101f953fef41641264d5403 (patch) | |
tree | 4ad80c19338bbe13af93595e152dbe8d71464ce0 /src/vm/appdomainnative.cpp | |
parent | 0279dbd600e14d88cfe87408f08f6adce59d2d8d (diff) | |
download | coreclr-a845b01e3688fd981101f953fef41641264d5403.tar.gz coreclr-a845b01e3688fd981101f953fef41641264d5403.tar.bz2 coreclr-a845b01e3688fd981101f953fef41641264d5403.zip |
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.
Diffstat (limited to 'src/vm/appdomainnative.cpp')
-rw-r--r-- | src/vm/appdomainnative.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |