From 484469962bd3786f66287fbbd65393eaf79653d4 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Tue, 9 May 2006 19:53:31 +0000 Subject: [PATCH] Don't let SDL catch SIGINT and SIGTERM signals. This is not suitable for SheepShaver since we are typically translating SDL_QUIT events to PowerOff() on MacOS side. And, if MacOS is not fully booted, it's not really convenient to shut it down, even with ctrl-C. i.e. you had to kill -9 it. --- SheepShaver/src/Unix/main_unix.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SheepShaver/src/Unix/main_unix.cpp b/SheepShaver/src/Unix/main_unix.cpp index 7c4f3997..0702e60b 100644 --- a/SheepShaver/src/Unix/main_unix.cpp +++ b/SheepShaver/src/Unix/main_unix.cpp @@ -467,6 +467,10 @@ int main(int argc, char **argv) goto quit; } atexit(SDL_Quit); + + // Don't let SDL catch SIGINT and SIGTERM signals + signal(SIGINT, SIG_DFL); + signal(SIGTERM, SIG_DFL); #endif #ifndef USE_SDL_VIDEO