OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / killpg.2
index 7df6478..ed1397e 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 1980, 1991 Regents of the University of California.
 .\" All rights reserved.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -28,6 +29,7 @@
 .\" 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.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)killpg.2   6.5 (Berkeley) 3/10/91
 .\"
@@ -37,7 +39,7 @@
 .\"     Added notes on CAP_KILL
 .\" Modified 2004-06-21 by aeb
 .\"
-.TH KILLPG 2 2007-07-26 "Linux" "Linux Programmer's Manual"
+.TH KILLPG 2 2010-09-20 "Linux" "Linux Programmer's Manual"
 .SH NAME
 killpg \- send signal to a process group
 .SH SYNOPSIS
@@ -49,9 +51,12 @@ killpg \- send signal to a process group
 Feature Test Macro Requirements for glibc (see
 .BR feature_test_macros (7)):
 .in
-.sp
+.ad l
+.TP 4
 .BR killpg ():
-_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
+_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
+.ad
 .SH DESCRIPTION
 .BR killpg ()
 sends the signal
@@ -81,7 +86,7 @@ In the case of
 .B SIGCONT
 it suffices when the sending and receiving
 processes belong to the same session.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 On success, zero is returned.
 On error, \-1 is returned, and
 .I errno
@@ -89,7 +94,7 @@ is set appropriately.
 .SH ERRORS
 .TP
 .B EINVAL
-.I Sig
+.I sig
 is not a valid signal number.
 .TP
 .B EPERM
@@ -103,13 +108,13 @@ No process can be found in the process group specified by
 .B ESRCH
 The process group was given as 0 but the sending process does not
 have a process group.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 SVr4, 4.4BSD (the
 .BR killpg ()
 function call first appeared in 4BSD), POSIX.1-2001.
 .SH NOTES
 There are various differences between the permission checking
-in BSD-type systems and System V-type systems.
+in BSD-type systems and System\ V-type systems.
 See the POSIX rationale for
 .BR kill ().
 A difference not mentioned by POSIX concerns the return
@@ -126,9 +131,18 @@ On Linux,
 .BR killpg ()
 is implemented as a library function that makes the call
 .IR "kill(-pgrp,\ sig)" .
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR getpgrp (2),
 .BR kill (2),
 .BR signal (2),
 .BR capabilities (7),
 .BR credentials (7)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.