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.
20 .Nd release a process control handle
26 .Fa "struct ps_prochandle *P"
31 .Fa "struct ps_prochandle *P"
36 function is used to release all of the resources associated with a
39 It is suitable for handles to core files, created processes, and grabbed
41 .Xr Pgrab_core 3PROC ,
50 function, all data that was returned via the handle will no longer be
52 For example, the data from calls to
54 .Xr Pgetauxvec 3PROC ,
58 The behavior of the released process is controlled by the
61 By default, if no flags are passed, then the process represented by
63 will be set running if it was created by
65 or if it was not originally stopped or set to stop in /proc.
66 The following values may be passed in to the
69 Multiple flags should be be combined with a bitwise-inclusive-OR.
70 .Bl -tag -width Er -offset indent
72 When releasing the process, clear all tracing flags that are set on the
74 .It Dv PRELEASE_RETAIN
75 When releasing the process, retain all tracing flags that are currently
76 active on the process.
78 Leave the process stopped.
79 It will not resume execution unless it is explicitly enabled with
81 or another process explicitly enables it.
83 Release the process and terminate it with
85 This option takes precedence over all other values that may be passed in to
91 function is similar to the
93 function in that it frees the resources associated with the process
98 function, it does not handle any logic to change or set the grabbed processes
104 .Sh INTERFACE STABILITY
116 .Xr Pgrab_core 3PROC ,