Seth Woolley's Man Viewer

Manual for killpg - man 3 killpg

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

KILLPG(3)                  Linux Programmer's Manual                 KILLPG(3)



NAME
       killpg(2,3) - send(2,n) signal(2,7) to all members of a process group

SYNOPSIS
       #include <signal.h>

       int killpg(2,3)(pid_t pgrp, int signal(2,7));

DESCRIPTION
       The  killpg(2,3)()  function causes signal(2,7) signal(2,7) to be sent to all the pro-
       cesses in(1,8) the process group pgrp or to the processes' own process group
       if(3,n) pgrp is equal to zero.

       If pgrp is greater than 1, it is equivalent to

       kill(1,2,1 builtins)(-pgrp,signal(2,7));

RETURN VALUE
       The value returned is -1 on error(8,n), or 0 for success.

ERRORS
       Errors are returned in(1,8) errno and can be one of the following:

       EINVAL for an invalid signal(2,7),

       EPERM  if(3,n) the userid of the calling process is not equal to that of the
              process the signal(2,7) is sent to, and the userid is not that of the
              superuser.

       ESRCH  for a process group which does not exist, and

CONFORMING TO
       POSIX

SEE ALSO
       kill(1,2,1 builtins)(2), signal(2,7)(2), signal(2,7)(7)



GNU                               1993-04-04                         KILLPG(3)

References for this manual (incoming links)