Updated documentation so people know to set the SDL_HINT_NO_SIGNAL_HANDLERS hint before SDL_Init()

This commit is contained in:
Sam Lantinga 2020-03-20 15:55:02 -07:00
parent 90f9e8f8b6
commit b6eb09ff13
1 changed files with 2 additions and 1 deletions

View File

@ -1019,7 +1019,8 @@ extern "C" {
/** /**
* \brief Tell SDL not to catch the SIGINT or SIGTERM signals. * \brief Tell SDL not to catch the SIGINT or SIGTERM signals.
* *
* This hint only applies to Unix-like platforms. * This hint only applies to Unix-like platforms, and should set before
* any calls to SDL_Init()
* *
* The variable can be set to the following values: * The variable can be set to the following values:
* "0" - SDL will install a SIGINT and SIGTERM handler, and when it * "0" - SDL will install a SIGINT and SIGTERM handler, and when it