table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
SYS_TGKILL(9) | Driver Basics | SYS_TGKILL(9) |
NAME¶
sys_tgkill - send signal to one specific threadSYNOPSIS¶
long
sys_tgkill(pid_t tgid, pid_t pid,
int sig);
ARGUMENTS¶
tgidthe thread group ID of the thread
pid
the PID of the thread
sig
signal to be sent
DESCRIPTION¶
This syscall also checks the tgid and returns -ESRCH even if the PID exists but it's not belonging to the target process anymore. This method solves the problem of threads exiting and PIDs getting reused.COPYRIGHT¶
February 2017 | Kernel Hackers Manual 3.16 |