1KILLPG(2)                     System Calls Manual                    KILLPG(2)
2
3
4

NAME

6       killpg - send signal to a process group
7

SYNOPSIS

9       killpg(pgrp, sig)
10       int pgrp, sig;
11

DESCRIPTION

13       Killpg  sends  the signal sig to the process group pgrp.  See sigvec(2)
14       for a list of signals.
15
16       The sending process and members of the process group must have the same
17       effective  user  ID, or the sender must be the super-user.  As a single
18       special case the continue signal SIGCONT may be  sent  to  any  process
19       that is a descendant of the current process.
20

RETURN VALUE

22       Upon  successful  completion,  a  value of 0 is returned.  Otherwise, a
23       value of -1 is returned and the global variable errno is set  to  indi‐
24       cate the error.
25

ERRORS

27       Killpg  will  fail  and  no signal will be sent if any of the following
28       occur:
29
30       [EINVAL]       Sig is not a valid signal number.
31
32       [ESRCH]        No process can be found in the process  group  specified
33                      by pgrp.
34
35       [ESRCH]        The process group was given as 0 but the sending process
36                      does not have a process group.
37
38       [EPERM]        The sending process is not the  super-user  and  one  or
39                      more  of  the  target processes has an effective user ID
40                      different from that of the sending process.
41

SEE ALSO

43       kill(2), getpgrp(2), sigvec(2)
44
45
46
474th Berkeley Distribution        May 14, 1986                        KILLPG(2)
Impressum