Thread (2 messages) 2 messages, 2 authors, 2025-02-12

[PATCH v4 1/1] man/man2/kill.2: Wording issue in kill(2) with sig=0

From: Amit Pinhas <hidden>
Date: 2025-02-12 20:56:23
Subsystem: the rest · Maintainer: Linus Torvalds

The fix was found from the relevant man page itself, as it had a wording
issue regarding the return value when sig=0.

Reported-by: Amit Pinhas <redacted>
Acked-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Amit Pinhas <redacted>
---
 man/man2/kill.2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/man/man2/kill.2 b/man/man2/kill.2
index 96468622e..9d3a7411e 100644
--- a/man/man2/kill.2
+++ b/man/man2/kill.2
@@ -79,7 +79,9 @@ .SH DESCRIPTION
 processes belong to the same session.
 (Historically, the rules were different; see HISTORY.)
 .SH RETURN VALUE
-On success (at least one signal was sent), zero is returned.
+On success, zero is returned.
+If signals were sent to a process group,
+success means that at least one signal was delivered.
 On error, \-1 is returned, and
 .I errno
 is set to indicate the error.
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help