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
27 .Fa "struct ps_prochandle *P"
32 .Fa "struct ps_prochandle *P"
40 functions manipulate the process flags for the process handle
42 The process flags determine how the process behaves in the face of
44 For example, setting the
46 flag indicates that the tracing flags of the process and the
47 inherit-on-fork mode should be set on children.
48 A full list of the process flags is available in the
55 function sets the flags specified in
57 by doing a bitwise-inclusive-OR with the previously set flags.
61 function removes the flags specified in
63 from the tracing flags of the process.
68 To see the current set of flags active on the process, check the
73 It can be obtained through the
77 Note, attempting to modify the process flags only works on active
79 Attempting to call these functions of process handles corresponding to core
80 files, zombie processes, or files, will result in an error.
82 Upon successful completion, the
93 is set to indicate the error.
95 For a full list of possible errors see the
99 .Sh INTERFACE STABILITY