comparison src/events/SDL_events_c.h @ 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
41 extern int SDL_AppActiveInit(void); 41 extern int SDL_AppActiveInit(void);
42 extern int SDL_KeyboardInit(void); 42 extern int SDL_KeyboardInit(void);
43 extern int SDL_MouseInit(void); 43 extern int SDL_MouseInit(void);
44 extern int SDL_QuitInit(void); 44 extern int SDL_QuitInit(void);
45 45
46 /* Event handler quit routines */
47 extern void SDL_AppActiveQuit(void);
48 extern void SDL_KeyboardQuit(void);
49 extern void SDL_MouseQuit(void);
50 extern void SDL_QuitQuit(void);
51
46 /* The event filter function */ 52 /* The event filter function */
47 extern SDL_EventFilter SDL_EventOK; 53 extern SDL_EventFilter SDL_EventOK;
48 54
49 /* The array of event processing states */ 55 /* The array of event processing states */
50 extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS]; 56 extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS];