SIGNAL(K) UNIX System V SIGNAL(K)
Name
signal - sends a signal to a process
Syntax
#include "sys/signal.h"
int
signal(pgrp, signum)
int pgrp, signum;
Description
The signal routine sends the specified signal, signum, to
all processes in the process group identified by pgrp.
Parameters
The pgrp argument is an integer that specifies the process
group number. At task time pgrp is one of the two
equivalent integers u.u_procp->p_pgrp or u.u_ttyp->t_pgrp.
If you wished to be able to terminate a process group at
interrupt time you would need to store the pgrp ID in a
global variable.
The signum argument is an integer that specifies the signal
to be sent.
See Also
psignal(K)
(printed 7/6/89)