|
|
#include <sys/lwp.h>
#include <signal.h>
int _lwp_kill(lwpid_t target_lwp, int sig);
_lwp_kill() sends a signal to the LWP specified by target_lwp. The signal that is to be sent is specified by sig and must be one 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 target_lwp.
The target_lwp must be an LWP within the same process as the calling LWP.
Zero is returned when successful. A non-zero value indicates an error.
If any of the following conditions occur, _lwp_kill() fails and returns the corresponding value:
|
|
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97