1 PDESTROY_AGENT(3PROC)  Process Control Library Functions PDESTROY_AGENT(3PROC)
   2 
   3 NAME
   4      Pdestroy_agent - destroy the agent LWP
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      void
  13      Pdestroy_agent(struct ps_prochandle *P);
  14 
  15 DESCRIPTION
  16      The Pdestroy_agent() function removes the agent LWP in P.  The existence
  17      of the agent LWP is reference counted by the library and therefore if
  18      Pcreate_agent(3PROC) has been called multiple times, the Pdestroy_agent()
  19      function must be called an equal number of times.  Upon the last time, it
  20      will destroy the agent LWP.
  21 
  22      Destroying the agent LWP does not change the state of the process
  23      represented by P.
  24 
  25 INTERFACE STABILITY
  26      Uncommitted
  27 
  28 MT-LEVEL
  29      See LOCKING in libproc(3LIB).
  30 
  31 SEE ALSO
  32      libproc(3LIB), Pcreate_agent(3PROC)
  33 
  34 illumos                          May 11, 2016                          illumos