SYSCALL_DEFINE3(9)

SYSCALL_DEFINE39

Send signal to one specific thread

Usage

SYSCALL_DEFINE3(tgkill, int, tgid, int, pid, int, sig);

Arguments

tgkill

-- undescribed --

int

-- undescribed --

tgid

the thread group ID of the thread

int

-- undescribed --

pid

the PID of the thread

int

-- undescribed --

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

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.