Lines Matching defs:action
49 struct sigaction action;
50 sigaction(SIGINT, NULL, &action);
52 if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
54 if ( action.sa_handler == SIG_DFL ) {
56 action.sa_handler = SDL_HandleSIG;
57 sigaction(SIGINT, &action, NULL);
59 sigaction(SIGTERM, NULL, &action);
61 if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
63 if ( action.sa_handler == SIG_DFL ) {
65 action.sa_handler = SDL_HandleSIG;
66 sigaction(SIGTERM, &action, NULL);
86 struct sigaction action;
87 sigaction(SIGINT, NULL, &action);
88 if ( action.sa_handler == SDL_HandleSIG ) {
89 action.sa_handler = SIG_DFL;
90 sigaction(SIGINT, &action, NULL);
92 sigaction(SIGTERM, NULL, &action);
93 if ( action.sa_handler == SDL_HandleSIG ) {
94 action.sa_handler = SIG_DFL;
95 sigaction(SIGTERM, &action, NULL);