PCLEARFAULT(3PROC) | Process Control Library Functions | PCLEARFAULT(3PROC) |
Pclearfault
, Lclearfault
—
#include <libproc.h>
int
Pclearfault
(struct ps_prochandle
*P);
int
Lclearfault
(struct ps_lwphandle
*L);
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.
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.
May 11, 2016 | OmniOS |