PCLEARSIG(3PROC) Process Control Library Functions PCLEARSIG(3PROC) NNAAMMEE PPcclleeaarrssiigg, LLcclleeaarrssiigg - clear process signals LLIIBBRRAARRYY Process Control Library (libproc, -lproc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t PPcclleeaarrssiigg(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P); _i_n_t LLcclleeaarrssiigg(_s_t_r_u_c_t _p_s___l_w_p_h_a_n_d_l_e _*_L); DDEESSCCRRIIPPTTIIOONN During normal operation a process may receive a signal. Signals may indicate an error, for example referencing unmapped memory, an alarm firing, requests for information, and users requesting an interruption. For more information on the generation and usage of signals, see signal.h(3HEAD). The PPcclleeaarrssiigg() function instructs the system to clear any signal pending delivery to a thread in the process represented by the process handle _P. The pending signal will never be delivered to process represented by _P. The LLcclleeaarrssiigg() function is identical to the PPcclleeaarrssiigg() function, except rather than operating on the process and its representive thread, it instead operates on the thread handle _L. The PPcclleeaarrssiigg() function only has meaning for active processes. It will fail on process handles corresponding to core files, zombie processes and ELF objects. RREETTUURRNN VVAALLUUEESS Upon successful completion, the PPcclleeaarrssiigg() function clears pending faults and returns 00. Otherwise, --11 is returned, eerrrrnnoo is set to indicate the error, and no faults are cleared. EERRRROORRSS For a full list of possible errors see the DDIIAAGGNNOOSSTTIICCSS section in proc(4). IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in libproc(3LIB). SSEEEE AALLSSOO signal.h(3HEAD), libproc(3LIB), proc(4) illumos May 11, 2016 illumos