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 set and unset process flags
26 .Fa "struct ps_prochandle *P"
31 .Fa "struct ps_prochandle *P"
39 functions manipulate the process flags for the process handle
41 The process flags determine how the process behaves in the face of
43 For example, setting the
45 flag indicates that the tracing flags of the process and the
46 inherit-on-fork mode should be set on children.
47 A full list of the process flags is available in the
54 function sets the flags specified in
56 by doing a bitwise-inclusive-OR with the previously set flags.
60 function removes the flags specified in
62 from the tracing flags of the process.
67 To see the current set of flags active on the process, check the
72 It can be obtained through the
76 Note, attempting to modify the process flags only works on active
78 Attempting to call these functions of process handles corresponding to core
79 files, zombie processes, or files, will result in an error.
81 Upon successful completion, the
92 is set to indicate the error.
94 For a full list of possible errors see the
98 .Sh INTERFACE STABILITY