]> git.proxmox.com Git - mirror_ovs.git/commit
ovs-vswitchd: Avoid or suppress memory leak warning for glibc aio.
authorBen Pfaff <blp@ovn.org>
Thu, 25 Jan 2018 23:39:49 +0000 (15:39 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 1 Feb 2018 19:27:08 +0000 (11:27 -0800)
commit93f558421aadcd4fc0ff758bd61612c23747c72a
treea2352ce79bd590f5bff7333a4af9946765e95bb9
parent9a3cf0ac3397555b38acd6ed7fed6e7eea5c0335
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>
include/openvswitch/vlog.h
lib/vlog.c
tests/glibc.supp
vswitchd/ovs-vswitchd.c