sys_tgkill(9)

sys_tgkill9

Send signal to one specific thread

Usage

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

Overview

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.

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.