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

psignal(D3oddi)


psignal -- send signal to a process

Synopsis

#include <sys/proc.h>
#include <sys/signal.h>

void psignal(proc_t *p, int sig);

Description

The psignal( ) function sends the specified signal to the specified process.

Arguments


p
Pointer to the process to which the signal is sent (see proc(FP)). At task time, this process is given by the u.u_procp member of the user structure.

sig
Number of the signal to be sent. For more information about possible signals, see the <sys/signal.h> header file.

Return values

None

Usage

If sig is SIGCONT, all stop signal handling (SIGSTOP, SIGTSTP, SIGTTIN, or SIGTTOU) is removed for the process specified by p.

If sig is one of SIGSTOP, SIGTSTP, SIGTTIN, or SIGTTOU, all handling of the signal SIGCONT is removed for the process specified by p.

Context and synchronization

User context.

Hardware applicability

All

Version applicability

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

SVR5 DDI compatibility

Current DDI drivers use the proc_signal(D3) function rather than psignal( ). psignal(D3) is supported only for very early DDI versions. See signals(D5) for a list of signals supported in DDI drivers.

References

proc(FP), signal(D3oddi)


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