concept signal handler in category c

appears as: A signal hdler, signal hdlers, signal handler, signal hdler
Modern C

This is an excerpt from Manning's book Modern C.

  • Certain events in the execution environment or calls to the function raise may raise signals that pass control to a specialized function, a signal handler.
  • As we have seen, setjmp/longjmp can be used to handle exceptional conditions that we detect ourselves during the execution of our code. A signal handler is a tool that handles exceptional conditions that arise differently: that are triggered by some event that is external to the program. Technically, there are two types of such external events: hardware interrupts, also referred to as traps or synchronous signals, and software interrupts or asynchronous signals.

    71   /**
    72    ** @brief Prototype of signal handlers
    73    **/
    74   typedef void sh_handler(int);
    
    
    !@%STYLE%@!
    {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":0,\"ch\":0},{\"line\":0,\"ch\":2}],[{\"line\":1,\"ch\":0},{\"line\":1,\"ch\":2}],[{\"line\":2,\"ch\":0},{\"line\":2,\"ch\":2}],[{\"line\":3,\"ch\":0},{\"line\":3,\"ch\":2}],[{\"line\":3,\"ch\":5},{\"line\":3,\"ch\":17}],[{\"line\":3,\"ch\":29},{\"line\":3,\"ch\":32}]]"}
    !@%STYLE%@!