Mono: Use exit(status) instead of abort() in exception hook

This commit is contained in:
Ignacio Etcheverry
2019-04-18 13:58:55 +02:00
parent d1f98ff51b
commit 8759c0e31a
3 changed files with 6 additions and 7 deletions

View File

@ -30,6 +30,7 @@
#include "gd_mono.h"
#include <mono/metadata/environment.h>
#include <mono/metadata/exception.h>
#include <mono/metadata/mono-config.h>
#include <mono/metadata/mono-debug.h>
@ -1008,7 +1009,9 @@ void GDMono::unhandled_exception_hook(MonoObject *p_exc, void *) {
if (ScriptDebugger::get_singleton())
ScriptDebugger::get_singleton()->idle_poll();
#endif
abort();
exit(mono_environment_exitcode_get());
GD_UNREACHABLE();
}