1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright 2003 Abhijit Menon-Sen <ams@wiw.org>
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" 2004-05-31, added tgkill, ahu, aeb
26 .TH TKILL 2 2007-06-01 "Linux" "Linux Programmer's Manual"
28 tkill, tgkill \- send a signal to a single process
31 .BI "int tkill(int " tid ", int " sig );
33 .BI "int tgkill(int " tgid ", int " tid ", int " sig );
38 system call is analogous to
40 except when the specified process is part of a thread group
41 (created by specifying the
45 Since all the processes in a thread group have the same PID,
46 they cannot be individually signaled with
50 however, one can address each process
57 by allowing the caller to
58 specify the thread group ID of the thread to be signaled, protecting
60 If the tgid is specified as \-1,
66 These are the raw system call interfaces, meant for internal
69 On success, zero is returned.
70 On error, \-1 is returned, and \fIerrno\fP
75 An invalid TID or signal was specified.
79 For the required permissions, see
83 No process with the specified thread ID (and thread group ID) exists.
86 is supported since Linux 2.4.19 / 2.5.4.
88 was added in Linux 2.5.75.
93 are Linux-specific and should not be used
94 in programs that are intended to be portable.
96 Glibc does not provide wrapper for these system calls; call them using