diff options
author | Max <max@mxzero.net> | 2023-11-06 02:23:49 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2023-11-06 15:42:59 -0500 |
commit | daa7da0d0bb5c2ce751231b8f679aff9ca33425d (patch) | |
tree | 7ea0810eb914742e2a8582ca1aae9de950c0115c | |
parent | b9a07191175217ea803bab7b38328bd53eca7925 (diff) | |
download | calcurse-daa7da0d0bb5c2ce751231b8f679aff9ca33425d.tar.gz calcurse-daa7da0d0bb5c2ce751231b8f679aff9ca33425d.zip |
correctness: kill returns -1 on error
Signed-off-by: Max <max@mxzero.net>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r-- | src/dmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); \ |