Psetfault
—
set fault tracing flags
Process Control Library (libproc, -lproc)
#include
<libproc.h>
void
Psetfault
(
struct
ps_prochandle *P,
const fltset_t *set);
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(4). 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.
Uncommitted
See
LOCKING in
libproc(3LIB).
libproc(3LIB),
Pfault(3PROC),
proc(4)