.\" 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:
.\" 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
.\"
.\" 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
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
.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
.SH ERRORS
.TP
.B EINVAL
-.I Sig
+.I sig
is not a valid signal number.
.TP
.B EPERM
.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
.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/.