Versions Compared

Key

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

...

This non-compliant code example invokes the free() function from within the signal handler. If an interrupt signal is received during or after the free() call in main(), the heap will be corrupted.

...

Signal handlers should be as minimal as possible, only unconditionally setting a flag where appropriate, and returning. You may also call the _ExitExit90 function to immediately terminate program execution.

...