Main index | Section 2 | Options |
#include <sys/thr.h>
The id argument specifies which threads get the signal. If id is equal to -1, all threads in the specified process are signalled. Otherwise, only the thread with the thread identifier equal to the argument is signalled.
The sig argument defines the delivered signal. It must be a valid signal number or zero. In the latter case no signal is actually sent, and the call is used to verify the liveness of the thread.
The signal is delivered with siginfo si_code set to SI_LWP.
[EINVAL] | |
The sig argument is not zero and does not specify valid signal. | |
[ESRCH] | |
The specified process or thread was not found. | |
Additionally, the thr_kill2() may return the following errors:
[EPERM] | |
The current process does not have sufficient privilege to check existence or send a signal to the specified process. | |
THR_kill (2) | May 5, 2020 |
Main index | Section 2 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.