|PR_CREAT(3PROC)||Process Control Library Functions||PR_CREAT(3PROC)|
pr_exit — inject
exit system call into victim process
Process Control Library (libproc, -lproc)
pr_exit(struct ps_prochandle *P,
function injects the exit(2) system call
into the target process P by means of the agent LWP.
If the process handle P is
NULL then this is equivalent to calling
exit(2) on the currently running
function only works on active processes. Process handles that correspond to
core files, zombie processes, or ELF objects do not support system call
Upon successful completion, the
function's return value is that described in
-1 is returned
ENOSYS to indicate that the system call could
not be injected.
pr_exit() function is called with
the value of P set to
then the function will not return.
For the full list of errors see the ERRORS section in exit(2).
pr_exit() function will fail if:
|May 11, 2016||OmniOS|