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

NAME


Pdestroy_agent - destroy the agent LWP

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

void
Pdestroy_agent(struct ps_prochandle *P);

DESCRIPTION


The Pdestroy_agent() function removes the agent LWP in P. The existence of
the agent LWP is reference counted by the library and therefore if
Pcreate_agent(3PROC) has been called multiple times, the Pdestroy_agent()
function must be called an equal number of times. Upon the last time, it
will destroy the agent LWP.

Destroying the agent LWP does not change the state of the process
represented by P.

INTERFACE STABILITY


Uncommitted

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

SEE ALSO


libproc(3LIB), Pcreate_agent(3PROC)

illumos May 11, 2016 illumos