From 580ea375512cb68fa5e0adee798bd0dd5c9de485 Mon Sep 17 00:00:00 2001 From: vraatikka Date: Wed, 24 Jul 2013 15:11:33 +0300 Subject: [PATCH] Removed DEBUG macros around atexit function registrations --- core/gateway.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/gateway.c b/core/gateway.c index 61921b6c8..4704cd1dd 100644 --- a/core/gateway.c +++ b/core/gateway.c @@ -234,7 +234,6 @@ void **threads; char mysql_home[1024], buf[1024], *home, *cnf_file = NULL; char ddopt[1024]; -#if defined(SS_DEBUG) int l; l = atexit(skygw_logmanager_exit); @@ -243,7 +242,7 @@ char ddopt[1024]; if (l != 0) { fprintf(stderr, "Couldn't register exit function.\n"); } -#endif + atexit(datadir_cleanup); if ((home = getenv("MAXSCALE_HOME")) != NULL)