From 79353a625cb73b5bb974e15acd60bcaa56b4555b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 21 Apr 2011 14:08:46 +0200 Subject: 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 --- src/dmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- cgit v1.2.3-70-g09d2