PREOPEN(3PROC) Process Control Library Functions PREOPEN(3PROC) NNAAMMEE PPrreeooppeenn - reopen a process LLIIBBRRAARRYY Process Control Library (libproc, -lproc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t PPrreeooppeenn(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P); DDEESSCCRRIIPPTTIIOONN The PPrreeooppeenn() function is used to regain control of the process represented by the handle _P. A loss of control is indicated by the Pstatus(3PROC) function returning the value PS_LOST. This may occur when the controlled process performs an exec(2) of a setuid or setgid binary or one where the controlling process cannot read the object file. For more information on this, see the PPRROOGGRRAAMMMMIINNGG NNOOTTEESS section of proc(4). If successful, the controlling process will obtain control of the process specified by _P. If it fails, the controlling process should release the handle with Prelease(3PROC). Note there are occasions where due to permissions it may not be possible to obtain control again. RREETTUURRNN VVAALLUUEESS Upon successful completion, the PPrreeooppeenn() function returns 00.. Otherwise, --11 is returned. IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in libproc(3LIB). SSEEEE AALLSSOO exec(2), libproc(3LIB), Prelease(3PROC), Pstatus(3PROC), proc(4) illumos May 11, 2016 illumos