tidy - bugprone-bad-signal-to-kill-thread — Extra Clang Tools 22.0.0git documentation (original) (raw)
bugprone-bad-signal-to-kill-thread¶
Finds pthread_kill function calls when a thread is terminated by raising SIGTERM signal and the signal kills the entire process, not just the individual thread. Use any signal except SIGTERM.
pthread_kill(thread, SIGTERM);
This check corresponds to the CERT C Coding Standard rulePOS44-C. Do not use signals to terminate threads.
cert-pos44-c redirects here as an alias of this check.