send signal to a thread in the same process
() function sends the signal given
, a thread in the same process as the
() will only succeed if
or the address of the thread control
block (TCB) of the target thread. sig
one of the signals specified in
or it may be 0,
in which case error checking is performed but no signal is actually sent.
is zero then the current thread is
Upon successful completion, the value 0 is returned; otherwise the
value -1 is returned and the global variable
is set to indicate the error.
() will fail and no signal will be
- sig is not a valid signal number.
- The process doesn't have a thread with thread ID
- tcb is not
NULL and not the TCB address of the
thread with thread ID tid.
() function is specific to
and should not be used in portable
() system call appeared in