---
name: "sys_tgkill"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/sys_tgkill"
---

# sys\_tgkill(9)

send signal to one specific thread

## NAME

sys\_tgkill - send signal to one specific thread

## SYNOPSIS

**long sys\_tgkill(pid\_t** *tgid***, pid\_t** *pid***, int** *sig***);**

## ARGUMENTS

*tgid*

the 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
