mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-24 10:32:32 +00:00
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.
This commit is contained in:
parent
4c225b2705
commit
484469962b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user