Fix AssemblyLoadContext.Unloading and ProcessExit for Windows Docker containers ...
authorDaniel Harvey <dharvey@microsoft.com>
Thu, 29 Mar 2018 18:59:19 +0000 (11:59 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Mar 2018 18:59:19 +0000 (11:59 -0700)
commit54c2b5bcaccefb4259aba2d0aca8cef89b6b5b6b
tree30ea11abf3c7cb198961ee4494dc7cf8c9403cb1
parentc504be9158c321cd8c106c569ab76863e95135e0
Fix AssemblyLoadContext.Unloading and ProcessExit for Windows Docker containers (#17265)

On Windows, we need to shutdown the EE when receiving a CTRL_CLOSE_EVENT to we run ProcessExit handlers and other code that relies on ProcessExit working (like AssemblyLoadContext.Unloading). One way we receive this event is when there's a running process in a docker container that has the stop command run against it.
src/vm/ceemain.cpp
src/vm/eeconfig.cpp