int killpg(int pgrp, int sig);
The sending process and members of the process group must have the same effective used ID, or the sender must be the super user.
On success, a zero is returned. On error, -1 is returned, and errno is set to one of the following values:
sig is not a valid signal number.
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.
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.
UNIX 98, with exceptions.
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
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
PTC MKS Toolkit 10.3 Documentation Build 39.