PDESTROY_AGENT(3PROC) Process Control Library Functions PDESTROY_AGENT(3PROC) NNAAMMEE PPddeessttrrooyy__aaggeenntt - destroy the agent LWP LLIIBBRRAARRYY Process Control Library (libproc, -lproc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _v_o_i_d PPddeessttrrooyy__aaggeenntt(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P); DDEESSCCRRIIPPTTIIOONN The PPddeessttrrooyy__aaggeenntt() 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 PPddeessttrrooyy__aaggeenntt() 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. IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in libproc(3LIB). SSEEEE AALLSSOO libproc(3LIB), Pcreate_agent(3PROC) illumos May 11, 2016 illumos