Pdestroy_agent
—
destroy the agent LWP
Process Control Library (libproc, -lproc)
#include
<libproc.h>
void
Pdestroy_agent
(
struct
ps_prochandle *P);
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.
Uncommitted
See
LOCKING in
libproc(3LIB).
libproc(3LIB),
Pcreate_agent(3PROC)