DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

signal(D3oddi)


signal -- send a signal to a process group

Synopsis

#include <sys/signal.h>

void signal(int pgrp, int signum);

Description

The signal( ) function sends the specified signal to all processes in the specified process group.

Arguments


pgrp
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 wish to be able to terminate a process group at interrupt time, store the pgrp ID in a global variable.

signum
Signal number to be sent.

Return values

None.

Usage

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

SVR5 DDI compatibility

Current DDI versions do not support an equivalent function. signal( ) is mostly used for TTY drivers, which are implemented as STREAMS drivers in DDI, and so use the M_SIG(D7str) and M_PCSIG(D7str) message types to post signals.

Use the DDI proc_signal(D3) function to send a signal to a process that is blocked with a SV_WAIT_SIG(D3) or SLEEP_LOCK_SIG(D3) call at the time the signal is posted.

References

psignal(D3oddi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005