1_lwp_kill(2)                     System Calls                     _lwp_kill(2)
2
3
4

NAME

6       _lwp_kill - send a signal to a LWP
7

SYNOPSIS

9       #include <sys/lwp.h>
10       #include <signal.h>
11
12       int _lwp_kill(lwpid_t target_lwp, int sig);
13
14

DESCRIPTION

16       The  _lwp_kill()  function  sends a signal to the LWP specified by tar‐
17       get_lwp. The signal that is to be sent is specified by sig and must  be
18       one  from the list given in signal.h(3HEAD). If sig is 0 (the null sig‐
19       nal), error checking is performed but no signal is actually sent.  This
20       can be used to check the validity of target_lwp.
21
22
23       The  target_lwp  must  be an LWP within the same process as the calling
24       LWP.
25

RETURN VALUES

27       Upon successful completion, 0 is returned. A non-zero  value  indicates
28       an error.
29

ERRORS

31       If any of the following conditions occur, _lwp_kill() fails and returns
32       the corresponding value:
33
34       EINVAL    The sig argument is not a valid signal number.
35
36
37       ESRCH     The target_lwp  argument  cannot  be  found  in  the  current
38                 process.
39
40

ATTRIBUTES

42       See attributes(5)  for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │MT-Level                     │Async-Signal-Safe            │
51       └─────────────────────────────┴─────────────────────────────┘
52

SEE ALSO

54       kill(2), sigaction(2), sigprocmask(2), signal.h(3HEAD), attributes(5)
55
56
57
58SunOS 5.11                        8 Aug 2001                      _lwp_kill(2)
Impressum