comparison src/events/SDL_active.c @ 1123:28ac87a38c17

Date: Fri, 08 Jul 2005 22:43:48 +0200 (CEST) From: Jiri Svoboda Subject: [SDL] signal handling bug I encountered the following bug: SDL doesn't reset signal handlers for SIGTERM and SIGINT, after calling SDL_Quit these remain hooked to the handler in SDL_quit.c, being translated into SDL_QUIT events. Consequently an application that issues a SDL_Quit and remains running will ignore any SIGTERM or SIGINT., and specifically CTRL-C presses.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 21 Aug 2005 06:18:54 +0000
parents b8d311d90021
children c9b51268668f
comparison
equal deleted inserted replaced
1122:e253d5448fce 1123:28ac87a38c17
44 SDL_appstate = (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS); 44 SDL_appstate = (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS);
45 45
46 /* That's it! */ 46 /* That's it! */
47 return(0); 47 return(0);
48 } 48 }
49 void SDL_AppActiveQuit(void)
50 {
51 }
49 52
50 Uint8 SDL_GetAppState(void) 53 Uint8 SDL_GetAppState(void)
51 { 54 {
52 return(SDL_appstate); 55 return(SDL_appstate);
53 } 56 }