1 PSETFAULT(3PROC)       Process Control Library Functions      PSETFAULT(3PROC)
   2 
   3 NAME
   4      Psetfault - set fault tracing flags
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      void
  13      Psetfault(struct ps_prochandle *P, const fltset_t *set);
  14 
  15 DESCRIPTION
  16      The Psetfault() function sets the fault tracing flags on the process
  17      handle P to set.  It replaces any existing fault tracing flags on the
  18      process.  These flags indicate which faults cause execution of the thread
  19      to stop.  Allowing another tool, such as a debugger, to act upon the
  20      process.  For more information on faults and the fltset_t structure see
  21      the PCSFAULT section in proc(4).  The current fault set for the process
  22      may be obtained through the Pfault(3PROC) function.
  23 
  24      Note, only active processes may have their fault set updated.  Process
  25      handles that refer to core files, zombie processes, and files do not have
  26      fault tracing flags and this function is a no-op on them.
  27 
  28 INTERFACE STABILITY
  29      Uncommitted
  30 
  31 MT-LEVEL
  32      See LOCKING in libproc(3LIB).
  33 
  34 SEE ALSO
  35      libproc(3LIB), Pfault(3PROC), proc(4)
  36 
  37 illumos                          May 11, 2016                          illumos