|PRELEASE(3PROC)||Process Control Library Functions||PRELEASE(3PROC)|
— release a process control handle
Process Control Library (libproc, -lproc)
*P, int flags);
function is used to release all of the resources associated with a
libproc handle. It is suitable for handles to core
files, created processes, and grabbed processes from the
After calling the
function, all data that was returned via the handle will no longer be valid.
For example, the data from calls to
Pstatus(3PROC), and others.
The behavior of the released process is controlled by the flags argument. By default, if no flags are passed, then the process represented by P will be set running if it was created by Pcreate(3PROC) or if it was not originally stopped or set to stop in /proc. The following values may be passed in to the flags argument. Multiple flags should be be combined with a bitwise-inclusive-OR.
SIGKILL. This option takes precedence over all other values that may be passed in to flags.
function is similar to the
Prelease() function in
that it frees the resources associated with the process handle
P; however, unlike the
Prelease() function, it does not handle any logic to
change or set the grabbed processes state. In general, prefer
|May 11, 2016||OmniOS|