19 lines · plain
1.. title:: clang-tidy - bugprone-bad-signal-to-kill-thread2 3bugprone-bad-signal-to-kill-thread4==================================5 6Finds ``pthread_kill`` function calls when a thread is terminated by7raising ``SIGTERM`` signal and the signal kills the entire process, not8just the individual thread. Use any signal except ``SIGTERM``.9 10.. code-block:: c++11 12 pthread_kill(thread, SIGTERM);13 14This check corresponds to the CERT C Coding Standard rule15`POS44-C. Do not use signals to terminate threads16<https://wiki.sei.cmu.edu/confluence/display/c/POS44-C.+Do+not+use+signals+to+terminate+threads>`_.17 18`cert-pos44-c` redirects here as an alias of this check.19