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

Pdestroy_agentdestroy the agent LWP

Process Control Library (libproc, -lproc)

#include <libproc.h>

Pdestroy_agent(struct ps_prochandle *P);

The () 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.

See in libproc(3LIB).

libproc(3LIB), Pcreate_agent(3PROC)

May 11, 2016 OmniOS