psignal(9r)psignal(9r)NAMEpsignal - General: Sends a signal to a process
struct proc *process,
int signal );
Specifies a pointer to a proc structure. Specifies the signal that you
want to send to the specified process. You can specify any of the sig‐
nals defined in /usr/sys/include/sys/signal.h.
The psignal routine posts a signal to the specified process. The post‐
ing of a signal causes that signal to be added to the set of pending
signals for the specified process. Depending on the state of the
process and the state of the process's signals, the specified signal
may be ignored, masked, caught by a tracing parent, or caught by the
actual target process. If the signal is to be delivered to the target
process, psignal examines and modifies the process state to prepare the
execution of the appropriate signal handler.