rem: static void setSignalHandler(void (*handler)(int));      static void signalHandler(int sigId) { setSignalHandler(SIG_DFL); fprintf(stderr, "*** KMail got signal %d (Exiting)\n", sigId);  kernel->dumpDeadLetters(); ::exit(-1); }   static void crashHandler(int sigId) { setSignalHandler(SIG_DFL); fprintf(stderr, "*** KMail got signal %d (Crashing)\n", sigId);  kernel->dumpDeadLetters();  }
context: static void setSignalHandler(void (*handler)(int));//-----------------------------------------------------------------------------// Crash recovery signal handlerstatic void signalHandler(int sigId){  setSignalHandler(SIG_DFL);  fprintf(stderr, "*** KMail got signal %d (Exiting)\n", sigId);  // try to cleanup all windows  kernel->dumpDeadLetters();  ::exit(-1); //}// Crash recovery signal handlerstatic void crashHandler(int sigId){  setSignalHandler(SIG_DFL);  fprintf(stderr, "*** KMail got signal %d (Crashing)\n", sigId);  // try to cleanup all windows  kernel->dumpDeadLetters();  // Return to DrKonqi.}//-----------------------------------------------------------------------------static void setSignalHandler(void (*handler)(int)){  signal(SIGKILL, handler);  signal(SIGTERM, handler);  signal(SIGHUP,  handler);  KCrash::setEmergencySaveFunction(crashHandler);}