/* per-child process init function */
int cfg_child_init(void);
+/* per-child process destroy function
+ * Should be called only when the child process exits,
+ * but SER continues running.
+ *
+ * WARNING: this function call must be the very last action
+ * before the child process exits, because the local config
+ * is not available afterwards.
+ */
+void cfg_child_destroy(void);
+
/* creates a new cfg group, and adds it to the linked list */
int cfg_new_group(char *name, int num, cfg_mapping_t *mapping,
char *vars, int size, void **handle);