thr_kill(3T)
NAME
thr_kill − send a signal to a thread
SYNOPSIS
#include <thread.h>
#include <signal.h>
int thr_kill(thread_t target_thread, int sig);
MT-LEVEL
MT-Safe
DESCRIPTION
thr_kill() sends the signal, sig, to the thread specified by target_thread. target_thread must be a thread within the same process as the calling thread. sig must be one from the list given in signal(5). If sig is zero, error checking is performed but no signal is actually sent. This can be used to check the validity of target_thread.
RETURN VALUES
Zero is returned when successful. A non-zero value indicates an error.
ERRORS
If any of the following conditions detected, thr_kill() fails and returns the corresponding value:
EINVAL sig is not a valid signal number.
ESRCH target_thread cannot be found in the current process.
SEE ALSO
kill(2), sigaction(2), thr_sigsetmask(3T), signal(5)
SunOS 5.4 — Last change: 22 Jan 1993