X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmini-windows.c;h=621a7a5fc31970e22d3e75e4993623ae10dddece;hb=0fa33056a6742b2ee02604596b355d661d9bdc41;hp=a0bf2539cb7b0ec3427bb35d1ec7ee76257a736c;hpb=b711f7731b1861c25f673eb699df5d4000910b9f;p=mono.git diff --git a/mono/mini/mini-windows.c b/mono/mini/mini-windows.c index a0bf2539cb7..621a7a5fc31 100644 --- a/mono/mini/mini-windows.c +++ b/mono/mini/mini-windows.c @@ -8,6 +8,7 @@ * Copyright 2003-2008 Ximian, Inc. * * See LICENSE for licensing information. + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include #include @@ -29,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -38,7 +39,7 @@ #include #include #include -#include +#include #include #include @@ -51,19 +52,21 @@ #include "jit-icalls.h" #ifdef _WIN32 -#include +#include #endif void mono_runtime_install_handlers (void) { #ifndef MONO_CROSS_COMPILE - win32_seh_init(); - win32_seh_set_handler(SIGFPE, mono_sigfpe_signal_handler); - win32_seh_set_handler(SIGILL, mono_sigill_signal_handler); - win32_seh_set_handler(SIGSEGV, mono_sigsegv_signal_handler); - if (mini_get_debug_options ()->handle_sigint) - win32_seh_set_handler(SIGINT, mono_sigint_signal_handler); + if (!mono_aot_only) { + win32_seh_init(); + win32_seh_set_handler(SIGFPE, mono_sigfpe_signal_handler); + win32_seh_set_handler(SIGILL, mono_sigill_signal_handler); + win32_seh_set_handler(SIGSEGV, mono_sigsegv_signal_handler); + if (mini_get_debug_options ()->handle_sigint) + win32_seh_set_handler(SIGINT, mono_sigint_signal_handler); + } #endif } @@ -71,7 +74,9 @@ void mono_runtime_cleanup_handlers (void) { #ifndef MONO_CROSS_COMPILE - win32_seh_cleanup(); + if (!mono_aot_only) { + win32_seh_cleanup(); + } #endif }