mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Fix Fluidsynth not responding to either SIGTERM nor SIGINT
with recent SDL2
This commit is contained in:
parent
0771899e3f
commit
4ee4b0403e
1 changed files with 2 additions and 1 deletions
|
@ -400,7 +400,8 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
|
||||
#if SDL2_SUPPORT
|
||||
|
||||
// Tell SDL that it shouldn't intercept signals, otherwise SIGINT and SIGTERM won't quit fluidsynth
|
||||
SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "1");
|
||||
if(SDL_Init(SDL_INIT_AUDIO) != 0)
|
||||
{
|
||||
fprintf(stderr, "Warning: Unable to initialize SDL2 Audio: %s", SDL_GetError());
|
||||
|
|
Loading…
Reference in a new issue