Merge pull request #2706 from ludovic-henry/fix-unhandledexception
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 8 Mar 2016 16:25:25 +0000 (16:25 +0000)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 8 Mar 2016 16:25:25 +0000 (16:25 +0000)
commit5a351236362d70e76056e6e7f5931612eff5b4eb
treed10c19a17802a46f904739ca1a3486b92d230fcb
parentc911cceab0a00d090d465ec93d31ef533e2b570e
parentd6afa9b8c15be36c4b54ea3dea95121754c29fcc
Merge pull request #2706 from ludovic-henry/fix-unhandledexception

[runtime] Set exit code on unhandled exception even if a managed handler is present

In case we would add a AppDomain.CurrentDomain.UnhandledException callback, we would not exit the VM in case of unhandled exception.
This goes against the expected behaviour, as we should indeed call these managed callbacks in all cases, but they should not stop the VM from exiting.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39077