38 SDL_Parachute(
int sig)
45 static const int SDL_fatal_signals[] = {
65 struct sigaction action;
67 for (i = 0; SDL_fatal_signals[
i]; ++
i) {
68 sigaction(SDL_fatal_signals[i],
NULL, &action);
69 if (action.sa_handler == SIG_DFL) {
70 action.sa_handler = SDL_Parachute;
71 sigaction(SDL_fatal_signals[i], &action,
NULL);
76 sigaction(SIGALRM,
NULL, &action);
77 if (action.sa_handler == SIG_DFL) {
78 action.sa_handler = SIG_IGN;
79 sigaction(SIGALRM, &action,
NULL);
85 for (i = 0; SDL_fatal_signals[
i]; ++
i) {
86 ohandler = signal(SDL_fatal_signals[i], SDL_Parachute);
87 if (ohandler != SIG_DFL) {
88 signal(SDL_fatal_signals[i], ohandler);
100 #ifdef HAVE_SIGACTION
101 struct sigaction action;
103 for (i = 0; SDL_fatal_signals[
i]; ++
i) {
104 sigaction(SDL_fatal_signals[i],
NULL, &action);
105 if (action.sa_handler == SDL_Parachute) {
106 action.sa_handler = SIG_DFL;
107 sigaction(SDL_fatal_signals[i], &action,
NULL);
113 for (i = 0; SDL_fatal_signals[
i]; ++
i) {
114 ohandler = signal(SDL_fatal_signals[i], SIG_DFL);
115 if (ohandler != SDL_Parachute) {
116 signal(SDL_fatal_signals[i], ohandler);
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
DECLSPEC void SDLCALL SDL_Quit(void)
void SDL_UninstallParachute(void)
void SDL_InstallParachute(void)