summaryrefslogtreecommitdiff
path: root/vswitchd
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 /vswitchd
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 'vswitchd')
-rw-r--r--vswitchd/ovs-vswitchd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c
index 7e9671aa7..83639357a 100644
--- a/vswitchd/ovs-vswitchd.c
+++ b/vswitchd/ovs-vswitchd.c
@@ -136,6 +136,7 @@ main(int argc, char *argv[])
bridge_exit(cleanup);
unixctl_server_destroy(unixctl);
service_stop();
+ vlog_disable_async();
ovsrcu_exit();
return 0;