From 230b3d451afbe913e2ca3cad915a3c3e8aef8798 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Nov 2023 02:23:49 +0100 Subject: [PATCH] correctness: kill returns -1 on error Signed-off-by: Max Signed-off-by: Lukas Fleischer --- src/dmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dmon.c b/src/dmon.c index 11d34585..cb51de7f 100644 --- a/src/dmon.c +++ b/src/dmon.c @@ -54,7 +54,7 @@ #define DMON_ABRT(...) do { \ DMON_LOG (__VA_ARGS__); \ - if (kill (getpid (), SIGINT) < 0) \ + if (kill (getpid (), SIGINT) == -1) \ { \ DMON_LOG (_("Could not stop daemon properly: %s\n"), \ strerror (errno)); \