2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PDESTROY_AGENT 3PROC
19 .Nd destroy the agent LWP
26 .Fa "struct ps_prochandle *P"
32 removes the agent LWP in
34 The existence of the agent LWP is reference counted by the library and
36 .Xr Pcreate_agent 3PROC
37 has been called multiple times, the
39 function must be called an equal number of times.
40 Upon the last time, it will destroy the agent LWP.
42 Destroying the agent LWP does not change the state of the process
45 .Sh INTERFACE STABILITY
54 .Xr Pcreate_agent 3PROC