Description: delay config file message after daemonization
Author: Patrice Dumas <pertusus@free.fr>

Index: halevt-0.1.6.2/src/manager.c
===================================================================
--- halevt-0.1.6.2.orig/src/manager.c
+++ halevt-0.1.6.2/src/manager.c
@@ -354,10 +354,7 @@
                 DEBUG(_("Configuration file %s parsing failed"), *current_conffile);
                 exit(1);
             }
-            DEBUG(_("Using configuration file %s"), *current_conffile);
-            free (*current_conffile);
         }
-        free (conffiles);
     }
 
     if (debug_config)
@@ -405,6 +402,18 @@
         }
     }
 
+    /* delay this message until here, such that it ends up in syslog
+       if in daemon mode */
+    if (conffiles != NULL)
+    {
+        WALK_NULL_ARRAY(current_conffile, conffiles)
+        {
+            DEBUG(_("Using configuration file %s"), *current_conffile);
+            free (*current_conffile);
+        }
+        free (conffiles);
+    }
+
     halevt_run_oninit ();
 
     loop = g_main_loop_new(NULL, FALSE);
