GNU/Linux |
CentOS 5.3 |
|
![]() |
tgkill(2) |
![]() |
tgkill − Send signal sig to one specific thread, tgid
long sys_tgkill (int tgid, int pid, int sig); |
Same as tkill(pid,sig), but only sends the signal if the target thread has its thread group ID tgid. Returns error code ESRCH if tgid does not match, otherwise returns the tkill() result.
tgkill returns 0 on success; otherwise, tgkill returns one of the errors listed in the "Errors" section.
-EINVAL
tgkill returns this error if pid or tgid are less than zero. This call is only valid for single tasks.
-ESRCH |
This error is returned if pid exists but no longer belongs to the target process. |
tkill(2), kill(2)
Niki Rahimi
![]() |
tgkill(2) | ![]() |