diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
commit | 4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch) | |
tree | 3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/debian-unstable/man2/kill.2 | |
parent | Adding upstream version 4.22.0. (diff) | |
download | manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip |
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/debian-unstable/man2/kill.2')
-rw-r--r-- | upstream/debian-unstable/man2/kill.2 | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/upstream/debian-unstable/man2/kill.2 b/upstream/debian-unstable/man2/kill.2 index d0a2e6fc..1b85a1dc 100644 --- a/upstream/debian-unstable/man2/kill.2 +++ b/upstream/debian-unstable/man2/kill.2 @@ -21,7 +21,7 @@ .\" Modified 2004-06-24 by aeb .\" Modified, 2004-11-30, after idea from emmanuel.colbus@ensimag.imag.fr .\" -.TH kill 2 2023-03-30 "Linux man-pages 6.05.01" +.TH kill 2 2024-05-02 "Linux man-pages 6.8" .SH NAME kill \- send signal to a process .SH LIBRARY @@ -30,15 +30,15 @@ Standard C library .SH SYNOPSIS .nf .B #include <signal.h> -.PP +.P .BI "int kill(pid_t " pid ", int " sig ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR kill (): .nf _POSIX_C_SOURCE @@ -48,25 +48,25 @@ The .BR kill () system call can be used to send any signal to any process group or process. -.PP +.P If \fIpid\fP is positive, then signal \fIsig\fP is sent to the process with the ID specified by \fIpid\fP. -.PP +.P If \fIpid\fP equals 0, then \fIsig\fP is sent to every process in the process group of the calling process. -.PP +.P If \fIpid\fP equals \-1, then \fIsig\fP is sent to every process for which the calling process has permission to send signals, except for process 1 (\fIinit\fP), but see below. -.PP +.P If \fIpid\fP is less than \-1, then \fIsig\fP is sent to every process in the process group whose ID is \fI\-pid\fP. -.PP +.P If \fIsig\fP is 0, then no signal is sent, but existence and permission checks are still performed; this can be used to check for the existence of a process ID or process group ID that the caller is permitted to signal. -.PP +.P For a process to have permission to send a signal, it must either be privileged (under Linux: have the .B CAP_KILL @@ -125,13 +125,13 @@ process, are those for which has explicitly installed signal handlers. This is done to assure the system is not brought down accidentally. -.PP +.P POSIX.1 requires that \fIkill(\-1,sig)\fP send \fIsig\fP to all processes that the calling process may send signals to, except possibly for some implementation-defined system processes. Linux allows a process to signal itself, but on Linux the call \fIkill(\-1,sig)\fP does not signal the calling process. -.PP +.P POSIX.1 requires that if a process sends a signal to itself, and the sending thread does not have the signal blocked, and no other thread |