diff options
Diffstat (limited to 'runtime/runtime_linux.cc')
-rw-r--r-- | runtime/runtime_linux.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/runtime_linux.cc b/runtime/runtime_linux.cc index 960d3324d3..46ee27405f 100644 --- a/runtime/runtime_linux.cc +++ b/runtime/runtime_linux.cc @@ -327,7 +327,7 @@ void HandleUnexpectedSignal(int signal_number, siginfo_t* info, void* raw_contex while (true) { } } - +#ifdef __linux__ // Remove our signal handler for this signal... struct sigaction action; memset(&action, 0, sizeof(action)); @@ -336,6 +336,9 @@ void HandleUnexpectedSignal(int signal_number, siginfo_t* info, void* raw_contex sigaction(signal_number, &action, NULL); // ...and re-raise so we die with the appropriate status. kill(getpid(), signal_number); +#else + exit(EXIT_FAILURE); +#endif } void Runtime::InitPlatformSignalHandlers() { |