summaryrefslogtreecommitdiff
path: root/include/openvswitch/vlog.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-01-25 15:39:49 -0800
committerBen Pfaff <blp@ovn.org>2018-02-01 11:27:08 -0800
commit93f558421aadcd4fc0ff758bd61612c23747c72a (patch)
treea2352ce79bd590f5bff7333a4af9946765e95bb9 /include/openvswitch/vlog.h
parent9a3cf0ac3397555b38acd6ed7fed6e7eea5c0335 (diff)
downloadopenvswitch-93f558421aadcd4fc0ff758bd61612c23747c72a.tar.gz
ovs-vswitchd: Avoid or suppress memory leak warning for glibc aio.
The asynchronous IO library in glibc starts threads that show up as memory leaks in valgrind. This commit attempts to avoid the warnings by flushing all the asynchronous I/O to the log file before exiting. This only does part of the job for glibc since it keeps the threads around for some undefined idle time before killing them, so in addition this commit adds a valgrind suppression to stop displaying these warnings in any case. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: William Tu <u9012063@gmai.com>
Diffstat (limited to 'include/openvswitch/vlog.h')
-rw-r--r--include/openvswitch/vlog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openvswitch/vlog.h b/include/openvswitch/vlog.h
index 3a4042113..98d477911 100644
--- a/include/openvswitch/vlog.h
+++ b/include/openvswitch/vlog.h
@@ -146,6 +146,7 @@ void vlog_set_syslog_target(const char *target);
/* Initialization. */
void vlog_init(void);
void vlog_enable_async(void);
+void vlog_disable_async(void);
/* Functions for actual logging. */
void vlog(const struct vlog_module *, enum vlog_level, const char *format, ...)