SYNOPSIS
#include <signal.h>
int killpg(int pgrp, int sig);
DESCRIPTION
The sending process and members of the process group must have the same effective used ID, or the sender must be the super user.
PARAMETERS
RETURN VALUES
On success, a zero is returned. On error, -1 is returned, and errno is set to one of the following values:
- EINVAL
-
sig is not a valid signal number.
- ESRCH
-
No process can be found in the process group specified by pgrp. Or, the process group was given as 0 but the sending process does not have a process group.
- EPERM
-
The sending process is not the super user and one or more of the target processes has an effective user ID different from that of the sending process.
CONFORMANCE
UNIX 98, with exceptions.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
Non-NuTCRACKER Platform processes do not have a process group unless they are created by a NuTCRACKER Platform process.
The determination of whether the sending process has permission to send
a signal to the receiving process ignores any uid or
gid settings that have been specified with calls to
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.