|PSIGNAL(3PROC)||Process Control Library Functions||PSIGNAL(3PROC)|
Psignal — set
signal tracing action
Process Control Library (libproc, -lproc)
Psignal(struct ps_prochandle *P,
int which, int stop);
function sets the signal tracing flag for the process handle
P. If stop is
it causes the process handle to stop threads that encounter the signal
which. If stop is
it disables tracing for the signal which.
The signal constants, representing valid values for
which, can be found in
signal.h(3HEAD). The signal
SIGKILL may not be stopped.
Note, only active processes may have their signal tracing flags updated. Process handles that refer to core files, zombie processes, and files do not have signal tracing flags. Calling this function on them is an error.
Upon successful completion, the
function returns the previous disposition of the signal
which. It returns 1 if it was set
and 0 if not.
Otherwise, -1 is returned and
set to indicate the error.
Psignal() function will fail if:
|May 11, 2016||OmniOS|