_lwp_kill(2) System Calls _lwp_kill(2)NAME
_lwp_kill - send a signal to a LWP
SYNOPSIS
#include <sys/lwp.h>
#include <signal.h>
int _lwp_kill(lwpid_t target_lwp, int sig);
DESCRIPTION
The _lwp_kill() function 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.h(3HEAD). 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.
RETURN VALUES
Upon successful completion, 0 is returned. A non-zero value indicates an error.
ERRORS
If any of the following conditions occur, _lwp_kill() fails and returns the corresponding value:
EINVAL The sig argument is not a valid signal number.
ESRCH The target_lwp argument cannot be found in the current process.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
SEE ALSO kill(2), sigaction(2), sigprocmask(2), signal.h(3HEAD), attributes(5)SunOS 5.10 8 Aug 2001 _lwp_kill(2)
Check Out this Related Man Page
_lwp_kill(2) System Calls _lwp_kill(2)NAME
_lwp_kill - send a signal to a LWP
SYNOPSIS
#include <sys/lwp.h>
#include <signal.h>
int _lwp_kill(lwpid_t target_lwp, int sig);
DESCRIPTION
The _lwp_kill() function 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.h(3HEAD). 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.
RETURN VALUES
Upon successful completion, 0 is returned. A non-zero value indicates an error.
ERRORS
If any of the following conditions occur, _lwp_kill() fails and returns the corresponding value:
EINVAL The sig argument is not a valid signal number.
ESRCH The target_lwp argument cannot be found in the current process.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
SEE ALSO kill(2), sigaction(2), sigprocmask(2), signal.h(3HEAD), attributes(5)SunOS 5.10 8 Aug 2001 _lwp_kill(2)
I am trying to find out that how many number of threads are currently running or in any other state which is created by POSIX standard in a process.
First I have defined a variable called proc_var of type proc defined in sys/proc.h.Next I open up the dir /proc and per directory wise I do an ioctl... (7 Replies)
Say I have 2 processes(perl scripts on Solaris machine) A and B.
the process A kill the process B.
While in the process B how do I print the PID of the process that Killed it(process A) before dieing.
My process A looks like
open(STATS, "ps -ef|");
while ($inputLine = <STATS>) {
if... (7 Replies)
Dear All,
I am new to this forum. This is my first.
I am facing customer issue. Customer has got core file while running the server.
He had sent core file and details from pstack, pmap and pldd commands.
I have to debug this application, please help me to fix this issue.
I am using sparc 10... (4 Replies)
In sun solaris whenever a jvm crashes we used to get the core file generated in binary format. We convert this core file to human readable format using
pstack corefile >> log
How can we convert the core file generated in HPUX to human readable format ? We dont have pstack either. (11 Replies)