.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SYS_TGKILL" "" "06 October 2005" "" ""
.SH NAME
sys_tgkill \- send signal to one specific thread
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
asmlinkage long sys_tgkill (int \fItgid\fB, int \fIpid\fB, int \fIsig\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fItgid\fB\fR
the thread group ID of the thread
.TP
\fB\fIpid\fB\fR
the PID of the thread
.TP
\fB\fIsig\fB\fR
signal to be sent
.SH "DESCRIPTION"
.PP
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.