95 lines
3.3 KiB
Groff
95 lines
3.3 KiB
Groff
.\" Copyright (c) 1980, 1991, 1993
|
||
.\" The Regents of the University of California. All rights reserved.
|
||
.\"
|
||
.\" Redistribution and use in source and binary forms, with or without
|
||
.\" modification, are permitted provided that the following conditions
|
||
.\" are met:
|
||
.\" 1. Redistributions of source code must retain the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer.
|
||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgement:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" @(#)killpg.2 8.1 (Berkeley) 6/2/93
|
||
.\" %FreeBSD: src/lib/libc/compat-43/killpg.2,v 1.10 2001/10/01 16:08:50 ru Exp %
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.Dd June 2, 1993
|
||
.Dt KILLPG 2
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm killpg
|
||
.Nd ¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Ë¥·¥°¥Ê¥ë¤òÁ÷¿®¤¹¤ë
|
||
.Sh ¥é¥¤¥Ö¥é¥ê
|
||
.Lb libc
|
||
.Sh ½ñ¼°
|
||
.In sys/types.h
|
||
.In signal.h
|
||
.Ft int
|
||
.Fn killpg "pid_t pgrp" "int sig"
|
||
.Sh ²òÀâ
|
||
.Fn killpg
|
||
¤Ï¡¢¥×¥í¥»¥¹¥°¥ë¡¼¥×
|
||
.Fa pgrp
|
||
¤Ë¥·¥°¥Ê¥ë
|
||
.Fa sig
|
||
¤òÁ÷¿®¤·¤Þ¤¹¡£
|
||
¥·¥°¥Ê¥ë¤Î¥ê¥¹¥È¤Ë¤Ä¤¤¤Æ¤Ï
|
||
.Xr sigaction 2
|
||
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
||
.Fa pgrp
|
||
¤¬ 0 ¤Î¾ì¹ç¡¢
|
||
.Fn killpg
|
||
¤Ï¡¢Á÷¿®Â¦¥×¥í¥»¥¹¤Î¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Ë¥·¥°¥Ê¥ë¤òÁ÷¿®¤·¤Þ¤¹¡£
|
||
.Pp
|
||
Á÷¿®Â¦¥×¥í¥»¥¹¤È¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð¤¬Æ±¤¸¼Â¸ú¥æ¡¼¥¶ ID ¤ò»ý¤Ä¤«¡¢
|
||
¤Þ¤¿¤ÏÁ÷¿®Â¦¤¬¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
||
Í£°ì¤ÎÆÃ¼ì¤Ê¥±¡¼¥¹¤È¤·¤Æ¡¢·Ñ³¥·¥°¥Ê¥ë SIGCONT ¤Ï¡¢
|
||
¸½ºß¤Î¥×¥í¥»¥¹¤Î»Ò¹¤Ç¤¢¤ì¤Ð¤É¤Î¥×¥í¥»¥¹¤Ë¤Ç¤âÁ÷¿®¤Ç¤¤Þ¤¹¡£
|
||
.Sh Ìá¤êÃÍ
|
||
.Rv -std killpg
|
||
.Sh ¥¨¥é¡¼
|
||
.Fn killpg
|
||
¤Ï¡¢¼¡¤Î¾ì¹ç¤Ë½èÍý¤Ë¼ºÇÔ¤·¡¢¥·¥°¥Ê¥ë¤ÏÁ÷¿®¤µ¤ì¤Þ¤»¤ó:
|
||
.Bl -tag -width Er
|
||
.It Bq Er EINVAL
|
||
.Fa sig
|
||
¤¬Í¸ú¤Ê¥·¥°¥Ê¥ëÈÖ¹æ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
||
.It Bq Er ESRCH
|
||
.Fa pgrp
|
||
¤Ç»ØÄꤷ¤¿¥×¥í¥»¥¹¥°¥ë¡¼¥×Æâ¤Ë¥×¥í¥»¥¹¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¡£
|
||
.It Bq Er ESRCH
|
||
¥×¥í¥»¥¹¥°¥ë¡¼¥×¤È¤·¤Æ 0 ¤¬»ØÄꤵ¤ì¤Þ¤·¤¿¤¬¡¢Á÷¿®Â¦¥×¥í¥»¥¹¤Ë
|
||
¥×¥í¥»¥¹¥°¥ë¡¼¥×¤¬¤¢¤ê¤Þ¤»¤ó¡£
|
||
.It Bq Er EPERM
|
||
Á÷¿®Â¦¥×¥í¥»¥¹¤¬¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ç¤Ê¤¯¡¢1 ¤Ä°Ê¾å¤Î¥¿¡¼¥²¥Ã¥È¥×¥í¥»¥¹¤Î
|
||
¼Â¸ú¥æ¡¼¥¶ ID ¤¬Á÷¿®Â¦¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶ ID ¤È°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
|
||
.El
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr getpgrp 2 ,
|
||
.Xr kill 2 ,
|
||
.Xr sigaction 2
|
||
.Sh Îò»Ë
|
||
.Fn killpg
|
||
´Ø¿ô¤Ï
|
||
.Bx 4.0
|
||
¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
|