send a signal to a sibling lightweight process
int _lwp_kill(lwpid_t lwpid, int sig);
LWP ID of the LWP to receive the signal
signal number of the signal to be sent
_lwp_kill sends a signal sig to a sibling lightweight process (LWP)
_lwp_kill is the LWP analog of kill.
_lwp_kill functions irrespective of whether the LWP identified
by lwpid was created with the LWP_DETACHED flag set.
Job control signals sent to individual LWPs affect the process as a whole.
Uncatchable signals cannot be sent to the init process.
_lwp_kill can succeed (in posting the signal)
even if the target lwpid has been suspended by _lwp_suspend.
lwpid is the LWP ID of the sibling LWP which is to receive the signal.
The scope of lwpid is the process with which the sender is associated;
signals cannot be sent to a non-sibling LWP,
signals cannot be sent to an LWP in another process using _lwp_kill.
sig is the signal number of the signal to be sent, and is
either 0 or a value from the list given in signal(5).
If sig is 0 (the null signal),
error checking is performed but no signal is actually sent;
this can be used to check the validity of lwpid.
_lwp_kill returns zero for success
and an error number for failure, as described below.
If any of the following conditions is detected, _lwp_kill
returns the corresponding value:
The sig argument contains an invalid or unsupported signal number.
The sig argument is SIGKILL or SIGSTOP and the target LWP is in
process 1 (init).
No LWP can be found in the current process with identity lwpid.
Lightweight processes (LWPs) are internal interfaces and are subject
Their use should be avoided.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004