1KILLPG(P) POSIX Programmer's Manual KILLPG(P)
2
3
4
6 killpg - send a signal to a process group
7
9 #include <signal.h>
10
11 int killpg(pid_t pgrp, int sig);
12
13
15 The killpg() function shall send the signal specified by sig to the
16 process group specified by pgrp.
17
18 If pgrp is greater than 1, killpg(pgrp, sig) shall be equivalent to
19 kill(-pgrp, sig). If pgrp is less than or equal to 1, the behavior of
20 killpg() is undefined.
21
23 Refer to kill() .
24
26 Refer to kill() .
27
28 The following sections are informative.
29
31 None.
32
34 None.
35
37 None.
38
40 None.
41
43 getpgid() , getpid() , kill() , raise() , the Base Definitions volume
44 of IEEE Std 1003.1-2001, <signal.h>
45
47 Portions of this text are reprinted and reproduced in electronic form
48 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
49 -- Portable Operating System Interface (POSIX), The Open Group Base
50 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
51 Electrical and Electronics Engineers, Inc and The Open Group. In the
52 event of any discrepancy between this version and the original IEEE and
53 The Open Group Standard, the original IEEE and The Open Group Standard
54 is the referee document. The original Standard can be obtained online
55 at http://www.opengroup.org/unix/online.html .
56
57
58
59IEEE/The Open Group 2003 KILLPG(P)