1 .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified Sat Jul 24 19:04:55 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" Modified 2004-11-11, Michael Kerrisk, <mtk-manpages@gmx.net>
26 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
27 .\" all rights reserved.
28 .\" Translated Fri Dec 26 15:29:06 JST 1997
29 .\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
30 .\" Updated & Modified Thu Feb 17 00:17:33 JST 2005
31 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
33 .TH KILLPG 3 1993-04-04 "GNU" "Linux Programmer's Manual"
36 .\"O killpg \- send signal to all members of a process group
37 killpg \- プロセスグループの全メンバにシグナルを送る
41 .B #include <signal.h>
43 .BI "int killpg(pid_t " pgrp ", int " signal );
49 .\"O function causes signal
51 .\"O to be sent to all the processes in the process group
53 .\"O or to the processes' own process group if
55 .\"O is equal to zero.
64 が 0 ならば、そのプロセス自身のプロセスグループにシグナルを送る。
68 .\"O is greater than 1, it is equivalent to:
70 が 1 より大きい場合は、以下の呼び出しと等価である。
74 .B kill(\-pgrp , signal);
77 .\"O .SH "RETURN VALUE"
79 .\"O The value returned is \-1 on error, or 0 for success.
80 エラーが発生した場合は \-1 が、成功した場合は 0 が返される。
83 .\"O Errors are returned in
85 .\"O and can be one of the following:
91 .\"O for an invalid signal,
95 .\"O if the userid of the calling process is not equal to that of the
96 .\"O process the signal is sent to, and the userid is not that of the
98 呼び出しプロセスのユーザ ID が、シグナルを送られるプロセスのユーザ ID と
99 一致せず、かつユーザ ID がスーパーユーザの ID ではない。
102 .\"O for a process group which does not exist, and
104 .\"O .SH "CONFORMING TO"