static void signal_handler(int);
static void print_version(void) __attribute__((noreturn));
static void reload_config(void);
-static void clean_up(void);
static void generate_text_internal(char *, int, struct text_object,
struct information *);
static int extract_variable_text_internal(struct text_object *,
}
}
-static void clean_up(void)
+void clean_up(void)
{
int i;
timed_thread_destroy_registered_threads();
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+
+void clean_up(void);
+
#ifndef _LOGGING_H
#define _LOGGING_H
/* critical error */
#define CRIT_ERR(...) \
- { ERR(__VA_ARGS__); exit(EXIT_FAILURE); }
+ { ERR(__VA_ARGS__); clean_up(); exit(EXIT_FAILURE); }
/* debugging output */
extern int global_debug_level;