PSIGNAL(K) UNIX System V PSIGNAL(K)
Name
psignal - sends signal to a process
Syntax
#include "sys/proc.h"
#include "sys/signal.h"
int
psignal(p, sig)
proc_t *p;
int sig;
Description
The psignal routine sends the specified signal sig to the
process specified by p. proc_t is another name for the proc
structure and is defined in sys/proc.h.
Parameters
p is a pointer to the process to which the signal is sent.
At task time it is u.u_procp (see sys/user.h). If you want
to be able to kill a process at interrupt time you need to
store u.u_procp in a global variable.
sig is the number of the signal to be sent. For more
information about possible signals, see the /sys/signal.h
header file.
See Also
signal(K)
(printed 7/6/89)