Multithreaded Programming Guide

Return Values

Returns zero after completing successfully. Any other returned value indicates that an error occurred. When either of the following conditions occurs, pthread_kill() fails and returns the corresponding value.


EINVAL

sig is not a valid signal number.


ESRCH

tid cannot be found in the current process.