summaryrefslogtreecommitdiffstats
path: root/src/dmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dmon.c')
-rw-r--r--src/dmon.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dmon.c b/src/dmon.c
index bae65d6..2f28d4c 100644
--- a/src/dmon.c
+++ b/src/dmon.c
@@ -1,4 +1,4 @@
-/* $calcurse: dmon.c,v 1.9 2009/08/01 13:31:20 culot Exp $ */
+/* $calcurse: dmon.c,v 1.10 2009/08/01 17:53:11 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -56,7 +56,8 @@
#define DMON_SLEEP_TIME 60
#define DMON_LOG(...) do { \
- (void)io_fprintln (path_dmon_log, __VA_ARGS__); \
+ if (dmon.log) \
+ (void)io_fprintln (path_dmon_log, __VA_ARGS__); \
} while (0)
#define DMON_ABRT(...) do { \
@@ -181,7 +182,8 @@ dmon_start (int parent_exit_status)
recur_apoint_llist_init ();
io_load_app ();
data_loaded = 1;
-
+
+ DMON_LOG (_("started at %s\n"), nowstr ());
for (;;)
{
int left;