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 Acked-by: Alejandro Colomar Signed-off-by: Amit Pinhas <amitpinhass@xxxxxxxxx> --- man/man2/kill.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man/man2/kill.2 b/man/man2/kill.2 index 96468622e..8bb75545b 100644 --- a/man/man2/kill.2 +++ b/man/man2/kill.2 @@ -79,7 +79,8 @@ .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