pthread_kill doesn't kill anything, it sends a signal (SIGHUP in this case). The default handler is actually supposed to terminate the entire program: do you have a complete, compilable example?
(note that thread killing is very hard to do right: C++ doesn't even allow it)