1. NAME

sys_tgkill - send signal to one specific thread

2. SYNOPSIS

long sys_tgkill(pid_t  tgid , pid_t  pid , int  sig );

3. ARGUMENTS

tgid
    the thread group ID of the thread

pid
    the PID of the thread

sig
    signal to be sent

4. DESCRIPTION

This syscall also checks the tgid and returns -ESRCH even if the PID exists but itAqs not belonging to the target process anymore. This method solves the problem of threads exiting and PIDs getting reused.

5. COPYRIGHT