[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

pgsignal Kernel Service

Purpose

Sends a signal to all of the processes in a process group.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
void pgsignal (pid, sig)
pid_t pid;
int sig; 

Parameters

pid Specifies the process ID of a process in the group of processes to receive the signal.
sig Specifies the signal to send.

Description

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.

Execution Environment

The pgsignal kernel service can be called from either the process or interrupt environment.

Return Values

The pgsignal service has no return values.

Implementation Specifics

The pgsignal kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Contents | Home | Search ]