|THRKILL(2)||System Calls Manual||THRKILL(2)|
tid, int sig,
thrkill() function sends the signal given by sig to tid, a thread in the same process as the caller.
thrkill() will only succeed if tcb is either
NULLor the address of the thread control block (TCB) of the target thread. sig may be one of the signals specified in sigaction(2) or it may be 0, in which case error checking is performed but no signal is actually sent.
If tid is zero then the current thread is targeted.
thrkill() will fail and no signal will be sent if:
NULLand not the TCB address of the thread with thread ID tid.
thrkill() function is specific to OpenBSD and should not be used in portable applications. Use pthread_kill(3) instead.
thrkill() system call appeared in OpenBSD 5.9.
|March 19, 2016||OpenBSD-current|