Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed signal handler type from SighandlerType to sighandler_t

...

Code Block
typedef void (*SighandlerTypesighandler_t)(int signum);
extern SighandlerTypesighandler_t signal(
  int signum, 
  SighandlerTypesighandler_t handler
);

Signal handlers can be interrupted by signals, including their own. If a signal is not reset before its handler is called, the handler can interrupt its own execution. A handler that always successfully executes its code despite interrupting itself or being interrupted is asynchronous-safe.

...