summaryrefslogtreecommitdiffstats
path: root/lib/libc/compat-43
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-10-22 03:37:00 +0000
committereadler <eadler@FreeBSD.org>2012-10-22 03:37:00 +0000
commit7f780401e5c89cc3329023acb7b24d9538e90ed4 (patch)
tree48e39ec389d81c9066712a2e3bf46936f9c8f2bd /lib/libc/compat-43
parentf38062a582d2eabb7770115f0c26ca665e612f56 (diff)
downloadFreeBSD-src-7f780401e5c89cc3329023acb7b24d9538e90ed4.zip
FreeBSD-src-7f780401e5c89cc3329023acb7b24d9538e90ed4.tar.gz
Update the kill(2) and killpg(2) man pages to the modern permission
checks. Also indicate killpg(2) is POSIX compliant. Reviewed by: jilles Reviewed by: wblock Approved by: cperciva MFC after: 3 days
Diffstat (limited to 'lib/libc/compat-43')
-rw-r--r--lib/libc/compat-43/killpg.213
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/libc/compat-43/killpg.2 b/lib/libc/compat-43/killpg.2
index b23b773..a1d52a4 100644
--- a/lib/libc/compat-43/killpg.2
+++ b/lib/libc/compat-43/killpg.2
@@ -58,11 +58,9 @@ is 0,
.Fn killpg
sends the signal to the sending process's process group.
.Pp
-The sending process and members of the process group must
-have the same effective user ID, or
-the sender must be the super-user.
-As a single special case the continue signal SIGCONT may be sent
-to any process with the same session ID as the caller.
+The sending process must be able to
+.Fn kill
+at least one process in the receiving process group.
.Sh RETURN VALUES
.Rv -std killpg
.Sh ERRORS
@@ -80,9 +78,8 @@ is not a valid signal number.
No process can be found in the process group specified by
.Fa pgrp .
.It Bq Er EPERM
-The sending process is not the super-user and one or more
-of the target processes has an effective user ID different from that
-of the sending process.
+.Fn kill
+returns EPERM for all processes in the process group.
.El
.Sh SEE ALSO
.Xr getpgrp 2 ,
OpenPOWER on IntegriCloud