PSETFAULT(3PROC) Process Control Library Functions PSETFAULT(3PROC)

NAME


Psetfault - set fault tracing flags

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

void
Psetfault(struct ps_prochandle *P, const fltset_t *set);

DESCRIPTION


The Psetfault() function sets the fault tracing flags on the process
handle P to set. It replaces any existing fault tracing flags on the
process. These flags indicate which faults cause execution of the
thread to stop. Allowing another tool, such as a debugger, to act upon
the process. For more information on faults and the fltset_t structure
see the PCSFAULT section in proc(5). The current fault set for the
process may be obtained through the Pfault(3PROC) function.

Note, only active processes may have their fault set updated. Process
handles that refer to core files, zombie processes, and files do not
have fault tracing flags and this function is a no-op on them.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), Pfault(3PROC), proc(5)

illumos May 11, 2016 illumos

tribblix@gmail.com :: GitHub :: Privacy