aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <max@mxzero.net>2023-11-06 02:23:49 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2023-11-06 15:42:59 -0500
commitdaa7da0d0bb5c2ce751231b8f679aff9ca33425d (patch)
tree7ea0810eb914742e2a8582ca1aae9de950c0115c /src
parentb9a07191175217ea803bab7b38328bd53eca7925 (diff)
downloadcalcurse-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>
Diffstat (limited to 'src')
-rw-r--r--src/dmon.c2
1 files changed, 1 insertions, 1 deletions
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)); \