aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-26 15:16:32 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 14:04:45 +0100
commit6fee0ca3ba31cbcc8c5f9e08a040c1e40dd87ef5 (patch)
tree3fddbf3b1d3cf273a98aa8307718ae9da0316043 /man2
parent40ff9e27dc653d3a55d797101847db5f1c3deaeb (diff)
downloadman-pages-6fee0ca3ba31cbcc8c5f9e08a040c1e40dd87ef5.tar.gz
killpg.2: Refer reader to kill(2) for signal permission rules
Rather than repeating details here, refer the reader to kill(2) (so that the rules are in a canonical location, and need only be edited in one place for future changes--see next commit). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/killpg.214
1 files changed, 4 insertions, 10 deletions
diff --git a/man2/killpg.2 b/man2/killpg.2
index bf63143c6d..1bc889aa1f 100644
--- a/man2/killpg.2
+++ b/man2/killpg.2
@@ -78,16 +78,8 @@ sends the signal to the calling process's process group.
.I pgrp
is less than or equal to 1, the behavior is undefined.)
-For a process to have permission to send a signal
-it must either be privileged (under Linux: have the
-.B CAP_KILL
-capability), or the real or effective
-user ID of the sending process must equal the real or
-saved set-user-ID of the target process.
-In the case of
-.B SIGCONT
-it suffices when the sending and receiving
-processes belong to the same session.
+For the permissions required to send a signal to another process, see
+.BR kill (2).
.SH RETURN VALUE
On success, zero is returned.
On error, \-1 is returned, and
@@ -102,6 +94,8 @@ is not a valid signal number.
.B EPERM
The process does not have permission to send the signal
to any of the target processes.
+For the required permissions, see
+.BR kill (2).
.TP
.B ESRCH
No process can be found in the process group specified by