1
2TGKILL(2) Linux Programmer's Guide TGKILL(2)
3
4
5
7 tgkill - Send signal sig to one specific thread, tgid
8
10 long sys_tgkill (int tgid, int pid, int sig);
11
12
14 Same as tkill(pid,sig), but only sends the signal if the target thread
15 has its thread group ID tgid. Returns error code ESRCH if tgid does not
16 match, otherwise returns the tkill() result.
17
18
20 tgkill returns 0 on success; otherwise, tgkill returns one of the er‐
21 rors listed in the "Errors" section.
22
23
25 -EINVAL
26 tgkill returns this error if pid or tgid are less than zero.
27 This call is only valid for single tasks.
28
29
30 -ESRCH This error is returned if pid exists but no longer belongs to
31 the target process.
32
33
35 tkill(2), kill(2)
36
37
38
40 Niki Rahimi
41
42
43
44Linux 2.6 2004-March-12 TGKILL(2)