MISRA C++:2008 Rule 18-7-1
The signal handling facilities of <csignal> shall not be used
Description
Rule Definition
The signal handling facilities of <csignal> shall not be used.1
Rationale
Signal handling functions such as signal contains undefined and
implementation-specific behavior.
You have to be very careful when using signal to avoid these
behaviors.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Check Information
| Group: Language Support Library |
| Category: Required |
Version History
Introduced in R2013b
See Also
Return from
computational exception signal handler | Signal call in
multithreaded program | Shared data
access within signal handler | Function called
from signal handler not asynchronous-safe | Check MISRA C++:2008 (-misra-cpp)
1 All MISRA coding rules and directives are © Copyright The MISRA Consortium Limited 2021.
The MISRA coding standards referenced in the Polyspace Bug Finder™ documentation are from the following MISRA standards:
MISRA C:2004
MISRA C:2012
MISRA C:2023
MISRA C++:2008
MISRA C++:2023
MISRA and MISRA C are registered trademarks of The MISRA Consortium Limited 2021.