PCLEARFAULT(3PROC) Process Control Library Functions PCLEARFAULT(3PROC)

NAME


Pclearfault, Lclearfault - clear process and thread faults

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

int
Pclearfault(struct ps_prochandle *P);

int
Lclearfault(struct ps_lwphandle *L);

DESCRIPTION


During normal operation a process may encounter a fault, due to a
hardware exception, identifying a problem with the running process.
Hardware faults include things like executing illegal instructions,
encountering a breakpoint, and arithmetic exceptions. Faults are
discussed further in proc(5).

The Pclearfault() function instructs the system to clear any fault
pending delivery to a thread in the process represented by the process
handle P. The pending fault will never be delivered to process
represented by P.

The Lclearfault() function is identical to the Pclearfault() function,
except rather than operating on the representative thread of the
process it operates on the thread handle L.

The Pclearfault() and Lclearfault() functions only have meaning for
active processes. They will fail on process handles corresponding to
zombie processes, ELF objects, and cores.

RETURN VALUES


Upon successful completion, the Pclearfault() and Lclearfault()
functions clear pending faults and return 0. Otherwise, -1 is
returned, errno is set to indicate the error, and no faults are
cleared.

ERRORS


For a full list of possible errors see the DIAGNOSTICS section in
proc(5).

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), proc(5)

illumos May 11, 2016 illumos

tribblix@gmail.com :: GitHub :: Privacy