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