Sends signal to one specific thread.
This system call is analogous to sys_kill, except when the specified process is part of a thread group (created by specifying the CLONE_THREAD flag in the call to clone). Since all the processes in a thread group have the same PID, they cannot be individually signalled with sys_kill. With sys_tgkill, however, one can address each process by its unique TID.
Arguments
eax |
270 |
ebx |
The thread group ID of the thread. If ebx is -1 sys_tgkill acts exactly as sys_tkill. |
ecx |
The PID of the thread. |
edx |
Signal to be sent. |
Return values
If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:
-EINVAL |
An invalid TID or signal was specified. |
-EPERM |
Permission denied. For the required permissions, see sys_kill. |
-ESRCH |
No process with the specified thread ID (and thread group ID) exists. |
|
Remarks
n/a
Compatibility
n/a |