summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-08-01 17:53:11 +0000
committerFrederic Culot <calcurse@culot.org>2009-08-01 17:53:11 +0000
commit55d6703fad50e800a6adcc064abe060eab7d27d1 (patch)
treee56b9f4175eedadea928057c0b00b156aaf32f28 /src/utils.c
parent989b6c885f06f887cb8dafcd69059c376988d938 (diff)
downloadcalcurse-55d6703fad50e800a6adcc064abe060eab7d27d1.tar.gz
calcurse-55d6703fad50e800a6adcc064abe060eab7d27d1.zip
Start and log daemon activity only if requested.
Diffstat (limited to 'src/utils.c')
-rwxr-xr-xsrc/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 37eab66..2354ad1 100755
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,4 +1,4 @@
-/* $calcurse: utils.c,v 1.81 2009/07/27 19:35:09 culot Exp $ */
+/* $calcurse: utils.c,v 1.82 2009/08/01 17:53:11 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -88,7 +88,8 @@ exit_calcurse (int status)
if (unlink (path_cpid) != 0)
EXIT (_("Could not remove calcurse lock file: %s\n"),
strerror (errno));
- dmon_start (status);
+ if (dmon.enable)
+ dmon_start (status);
}
exit (status);