Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_signals.c
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | |||||
| # ifdef WIN32 | # ifdef WIN32 | ||||
| SetUnhandledExceptionFilter(windows_exception_handler); | SetUnhandledExceptionFilter(windows_exception_handler); | ||||
| # else | # else | ||||
| /* after parsing args */ | /* after parsing args */ | ||||
| signal(SIGSEGV, sig_handle_crash); | signal(SIGSEGV, sig_handle_crash); | ||||
| # endif | # endif | ||||
| } | } | ||||
| # ifdef WIN32 | |||||
| /* Prevent any error mode dialogs from hanging the application. */ | |||||
| SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOALIGNMENTFAULTEXCEPT | SEM_NOGPFAULTERRORBOX | | |||||
| SEM_NOOPENFILEERRORBOX); | |||||
| # endif | |||||
| if (app_state.signal.use_abort_handler) { | if (app_state.signal.use_abort_handler) { | ||||
| signal(SIGABRT, sig_handle_abort); | signal(SIGABRT, sig_handle_abort); | ||||
| } | } | ||||
| } | } | ||||
| void main_signal_setup_background(void) | void main_signal_setup_background(void) | ||||
| { | { | ||||
| /* for all platforms, even windows has it! */ | /* for all platforms, even windows has it! */ | ||||
| Show All 33 Lines | |||||