src/timer.c
/************************************************************************/
/*                                                                      */
/*                     i n t _ p a n i c _ i n i t                      */
/*                                                                      */
/*  A catch for all the deadly interrupts (but KILL, of course)          */
/*  Dumps you into uraid; you probably can't get back from it,          */
/*     but there is hope that you will be able to poke around with      */
/*     uraid and get a clue about why you're dying.                     */
/*                                                                      */
/************************************************************************/


A catch for all the deadly interrupts (but KILL, of course)
Dumps you into uraid; you probably can't get back from it,
but there is hope that you will be able to poke around with
uraid and get a clue about why you're dying.
A catch for all the deadly interrupts ( but KILL of course ) Dumps you into uraid ; you probably can ' t get back from it but there is hope that you will be able to poke around with uraid and get a clue about why you ' re dying .
static void int_panic_init() {
#ifndef DOS
  struct sigaction panic_action, ignore_action;
  panic_action.sa_sigaction = panicuraid;
  sigemptyset(&panic_action.sa_mask);
  panic_action.sa_flags = SA_SIGINFO;
  ignore_action.sa_handler = SIG_IGN;
  sigemptyset(&ignore_action.sa_mask);
  ignore_action.sa_flags = 0;
  sigaction(SIGHUP, &panic_action, NULL);
  sigaction(SIGQUIT, &panic_action, NULL);
  sigaction(SIGILL, &panic_action, NULL);
#ifdef SIGEMT
  sigaction(SIGEMT, &panic_action, NULL);
#endif
  sigaction(SIGBUS, &panic_action, NULL);
  sigaction(SIGSEGV, &panic_action, NULL);
  sigaction(SIGSYS, &panic_action, NULL);
  sigaction(SIGTERM, &panic_action, NULL);
  sigaction(SIGPIPE, &ignore_action, NULL);
#endif
  DBPRINT(("Panic interrupts enabled\n"));
}
static void int_panic_init ( ) { #ifndef DOS struct sigaction panic_action , ignore_action ; panic_action . sa_sigaction = panicuraid ; sigemptyset ( & panic_action . sa_mask ) ; panic_action . sa_flags = SA_SIGINFO ; ignore_action . sa_handler = SIG_IGN ; sigemptyset ( & ignore_action . sa_mask ) ; ignore_action . sa_flags = 0 ; sigaction ( SIGHUP , & panic_action , NULL ) ; sigaction ( SIGQUIT , & panic_action , NULL ) ; sigaction ( SIGILL , & panic_action , NULL ) ; #ifdef SIGEMT sigaction ( SIGEMT , & panic_action , NULL ) ; #endif sigaction ( SIGBUS , & panic_action , NULL ) ; sigaction ( SIGSEGV , & panic_action , NULL ) ; sigaction ( SIGSYS , & panic_action , NULL ) ; sigaction ( SIGTERM , & panic_action , NULL ) ; sigaction ( SIGPIPE , & ignore_action , NULL ) ; #endif DBPRINT ( ( " \n " ) ) ; }
i n t _ p a n i c _ i n i t
i n t _ p a n i c _ i n i t
/* Ignore SIGPIPE */