mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-12 16:30:44 +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;
|
goto quit;
|
||||||
}
|
}
|
||||||
atexit(SDL_Quit);
|
atexit(SDL_Quit);
|
||||||
|
|
||||||
|
// Don't let SDL catch SIGINT and SIGTERM signals
|
||||||
|
signal(SIGINT, SIG_DFL);
|
||||||
|
signal(SIGTERM, SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef USE_SDL_VIDEO
|
#ifndef USE_SDL_VIDEO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user