Multithreaded Programming Guide

thr_kill Return Values

Upon successful completion, thr_kill() returns 0. When any of the following conditions is detected, thr_kill() fails and returns the corresponding value. When a failure occurs, no signal is sent.


ESRCH

Description:

No thread was found associated with the thread designated by thread ID.


EINVAL

Description:

The sig argument value is not zero. sig is an invalid or unsupported signal number.