Versions Compared

Key

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

...

Some implementations define useful behavior for programs that return from one or more of these signal handlers. For example, For instance, Solaris provides the sigfpe() function specifically to set a SIGFPE handler that a program may safely return from. And Sun also provides platform-specific computational exceptions for the SIGTRAP, SIGBUS, and SIGEMT signals. Finally, GNU libsigsegv takes advantage of the ability to return from a SIGSEGV handler to implement page-level memory management in user mode. An example of implementation-defined computational exceptions are the SIGTRAP, SIGBUS, and SIGEMT signals in Sun environments.

Risk Assessment

Attempting to handle SIGSEGV, SIGILL, or SIGFPE signals is rare. However, code that does rely on handling these signals will usually require a redesign to fix.

...