[ULOGD2 PATCH 18/18] Add valgrind compilation option.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Valgrind messages are obscur when the plugins are unloaded. This patch
adds a macro that can be used to desactivate unloading. To use it, you
have to specify 'CPPFLAGS=-DDEBUG_VALGRIND' on configure line.

Signed-off-by: Eric Leblond <eric@xxxxxx>
---
 src/ulogd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/ulogd.c b/src/ulogd.c
index 1a1f6af..badd7bd 100644
--- a/src/ulogd.c
+++ b/src/ulogd.c
@@ -985,6 +985,7 @@ static void stop_pluginstances()
 	}
 }
 
+#ifndef DEBUG_VALGRIND
 static void unload_plugins()
 {
 	struct ulogd_plugin_handle *ph, *nph;
@@ -993,6 +994,7 @@ static void unload_plugins()
 		free(ph);
 	}
 }
+#endif
 
 static void stop_stack()
 {
@@ -1015,7 +1017,9 @@ static void sigterm_handler(int signal)
 
 	stop_stack();
 
+#ifndef DEBUG_VALGRIND
 	unload_plugins();
+#endif
 
 	if (logfile != NULL  && logfile != stdout) {
 		fclose(logfile);
-- 
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux