pthread_kill(3P) pthread_kill(3P)
pthread_kill - deliver a signal to a thread
#include <signal.h>
int pthread_kill(pthread_t thread, int sig);
The pthread_kill() function is used to request that a signal be sent to
the specified thread.
If sig is zero, error checking is performed, but no signal is actually
sent.
On success, pthread_kill() returns zero; otherwise, an error number is
returned:
[ESRCH] The thread parameter does not identify a thread.
[EINVAL] The value specified by sig is either an invalid or
unsupported signal number.
sigaction(2), pthread_sigmask(3P), signal(5).
PPPPaaaaggggeeee 1111 [ Back ]
|