Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
void handler(int signum) {
#ifdef WINDOWS
  signal(signum, handler);
#endif
  /* rest of handling code */
}

Non-persistent handlers

...

Code Block
bgColor#ccccff
void handler(int signum) {
#ifdef WINDOWS
  /* windows automatically resets handlers to default */
#else
  signal(signum, SIG_DFL);
#endif
  /* rest of handling code */
}

Risk Analysis

...