title: pthread_kill kills not just a thread but the whole program
body: <p>I am using <code>int s=pthread_kill(thread_arr[t], 9);</code> to send the SIGKILL signal to the thread that is in the t place of thread_arr, but instead of killing this exact thread my whole program is being killed. Can anyone tell me if I am doing something wrong?</p>