| Summary: | SDL eats SIGINT by default | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tiffany Bennett <tiffany> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | API change | ||
| Priority: | P2 | CC: | tiffany |
| Version: | 2.0.1 | Keywords: | triage-2.0.4 |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Tiffany Bennett
2014-03-06 21:09:09 UTC
Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! As of https://hg.libsdl.org/SDL/rev/0af69dab9bb6, you can use a hint to prevent SDL from touching the signal handlers. From your program, before calling SDL_Init()... SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1"); ...it is safe to call this on any platform, but it only does something on Unix-like things. You can also force this from the command line: set the "SDL_NO_SIGNAL_HANDLERS" environment variable to "1". The default will continue to be to install the signal handler, but now you can explicitly prevent this if your app ignores SDL_QUIT or wants its own handler instead. --ryan. |