aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-04-21 14:08:46 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-04-22 02:47:38 +0200
commit79353a625cb73b5bb974e15acd60bcaa56b4555b (patch)
treeab8924ad76be4c0e90e57492925ae9e25a6942f0 /src
parentddd0cb21fa223b7c410805868380301b31714812 (diff)
downloadcalcurse-79353a625cb73b5bb974e15acd60bcaa56b4555b.tar.gz
calcurse-79353a625cb73b5bb974e15acd60bcaa56b4555b.zip
Ignore daemon lock file if the daemon process died.
Do this in a fashion similar to what was done in commit 6ff95238766656c5ea9d5c65c35d3aef93499f60. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
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 89ef80d..fff9a55 100644
--- a/src/dmon.c
+++ b/src/dmon.c
@@ -214,6 +214,6 @@ dmon_stop (void)
if (!dpid)
return;
- if (kill ((pid_t)dpid, SIGINT) < 0)
+ if (kill ((pid_t)dpid, SIGINT) < 0 && errno != ESRCH)
EXIT (_("Could not stop calcurse daemon: %s\n"), strerror (errno));
}