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 clear process and thread faults
26 .Fa "struct ps_prochandle *P"
30 .Fa "struct ps_lwphandle *L"
33 During normal operation a process may encounter a
35 due to a hardware exception, identifying a problem with the running process.
36 Hardware faults include things like executing illegal instructions, encountering
37 a breakpoint, and arithmetic exceptions.
38 Faults are discussed further in
43 function instructs the system to clear any fault pending delivery to a
44 thread in the process represented by the process handle
46 The pending fault will never be delivered to process represented by
51 function is identical to the
53 function, except rather than operating on the representative thread of
54 the process it operates on the thread handle
61 functions only have meaning for active processes.
62 They will fail on process handles corresponding to zombie processes, ELF
65 Upon successful completion, the
69 functions clear pending faults and return
75 is set to indicate the error,
76 and no faults are cleared.
78 For a full list of possible errors see the
82 .Sh INTERFACE STABILITY