Sends a signal to all of the processes in a process group.
#include <sys/types.h> #include <sys/errno.h>
void pgsignal (pid, sig) pid_t pid; int sig;
pid | Specifies the process ID of a process in the group of processes to receive the signal. |
sig | Specifies the signal to send. |
The pgsignal kernel service sends a signal to each member in the process group to which the process identified by the pid parameter belongs. The pid parameter must be the process identifier of the member of the process group to be sent the signal. The sig parameter specifies which signal to send.
Device drivers can get the value for the pid parameter by using the getpid kernel service. This value is the process identifier for the currently executing process.
The sigaction subroutine contains a list of the valid signals.
The pgsignal kernel service can be called from either the process or interrupt environment.
The pgsignal service has no return values.
The pgsignal kernel service is part of the Base Operating System (BOS) Runtime.
The getpid kernel service, pidsig kernel service.
The sigaction subroutine.
Process and Exception Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.