Uncaught signal kills entire process instead of specific thread
This defect occurs when you use an
uncaught signal to kill a thread. For instance, you use the POSIX® function pthread_kill and send the signal
SIGTERM to kill a thread.
Sending a signal kills the entire process instead of just the thread that you intend to kill.
For instance, the pthread_kill specifications state that if the disposition of
a signal is to terminate, this action affects the entire process.
Use other mechanisms that are intended to kill specific threads.
For instance, use the POSIX function pthread_cancel to terminate a specific
thread.
| Group: Concurrency |
| Language: C | C++ |
| Default: Off |
Command-Line Syntax:
THREAD_KILLED_WITH_SIGNAL |
| Impact: Low |