Chapter 11. Signals (SIG)
SIG30-C. Call only asynchronous-safe functions within signal handlers
Call only asynchronous-safe functions within signal handlers. For strictly conforming programs, only the C standard library functions abort()
, _Exit()
, quick_exit()
, and signal()
can be safely called from within a signal handler.
The C Standard, 7.14.1.1, paragraph 5 [ISO/IEC 9899:2011], states that if the signal ...
Get The CERT ® C Coding Standard: 98 Rules for Developing Safe, Reliable, and Secure Systems, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.