summaryrefslogtreecommitdiff
path: root/src/dmon.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-07-27 19:35:09 +0000
committerFrederic Culot <calcurse@culot.org>2009-07-27 19:35:09 +0000
commitb45a8bfbb454160e8e4a2f4925a0c1ad27ef92c2 (patch)
tree1080969d4c05454a6cb13c1c2d3b82d0c6ed3bd4 /src/dmon.c
parentf0005f64dc522a3cd2fd1f8083f70047b17d015a (diff)
downloadcalcurse-b45a8bfbb454160e8e4a2f4925a0c1ad27ef92c2.zip
Work on allocating and freeing memory associated with user's data for the daemon.
Diffstat (limited to 'src/dmon.c')
-rw-r--r--src/dmon.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dmon.c b/src/dmon.c
index 8a2f66a..772b92f 100644
--- a/src/dmon.c
+++ b/src/dmon.c
@@ -1,4 +1,4 @@
-/* $calcurse: dmon.c,v 1.5 2009/07/26 21:03:21 culot Exp $ */
+/* $calcurse: dmon.c,v 1.6 2009/07/27 19:35:09 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -67,7 +67,8 @@
static void
dmon_sigs_hdlr (int sig)
{
- notify_free_app ();
+ free_user_data ();
+
DMON_LOG (_("terminated at %s with signal %d\n"), nowstr (), sig);
if (unlink (path_dpid) != 0)
@@ -164,6 +165,8 @@ dmon_start (int parent_exit_status)
custom_load_conf (&conf, 0);
io_check_file (path_apts, (int *)0);
+ apoint_llist_init ();
+ recur_apoint_llist_init ();
io_load_app ();
for (;;)