Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 4.8

i386

tgkill(2)


TGKILL

TGKILL

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
AUTHOR

NAME

tgkill − Send signal sig to one specific thread, tgid

SYNOPSIS

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

DESCRIPTION

Same as tkill(pid,sig), but only sends the signal if the target thread has its thread group ID tgid. Returns error code ESRCH if tgid does not match, otherwise returns the tkill() result.

RETURN VALUE

tgkill returns 0 on success; otherwise, tgkill returns one of the errors listed in the "Errors" section.

ERRORS

-EINVAL

tgkill returns this error if pid or tgid are less than zero. This call is only valid for single tasks.

-ESRCH

This error is returned if pid exists but no longer belongs to the target process.

SEE ALSO

tkill(2), kill(2)

AUTHOR

Niki Rahimi



tgkill(2)