Annotated edit history of
killpg(3) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
KILLPG |
|
|
2 |
!!!KILLPG |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
ERRORS |
|
|
8 |
CONFORMING TO |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
killpg - send signal to all members of a process group. |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__#include |
|
|
19 |
__ ''pidgrp''__, int__ ''signal''__); |
|
|
20 |
__ |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
The __killpg()__ function causes signal ''signal'' to |
|
|
25 |
be sent to all the processes in the process group |
|
|
26 |
''pidgrp'' or to the processes' own process group if |
|
|
27 |
''pidgrp'' is equal to zero. |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
It is equivalent to |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__kill(-__''pidgrp''__,__''signal''__); |
|
|
34 |
__ |
|
|
35 |
!!RETURN VALUE |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
The value returned is -1 on error, or 0 for |
|
|
39 |
success. |
|
|
40 |
!!ERRORS |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
Errors are returned in ''errno'' and can be one of the |
|
|
44 |
following: |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
__EINVAL__ |
|
|
48 |
|
|
|
49 |
|
|
|
50 |
for an invalid signal, |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__ESRCH__ |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
for a process group which does not exist, and |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
__EPERM__ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
if the userid of the calling process is not equal to that of |
|
|
63 |
the process the signal is sent to, and the userid is not |
|
|
64 |
that of the superuser. |
|
|
65 |
!!CONFORMING TO |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
??? |
|
|
69 |
!!SEE ALSO |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
kill(2), signal(2), |
|
|
73 |
signal(7) |
|
|
74 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.