From daa7da0d0bb5c2ce751231b8f679aff9ca33425d Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Nov 2023 02:23:49 +0100 Subject: 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 11d3458..cb51de7 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)); \ -- cgit v1.2.3-70-g09d2