commit | 6d0b908a628a7086fa855c68b217cc1e2a5c4c19 | [log] [tgz] |
---|---|---|
author | Victor Kaplansky <victork@redhat.com> | Tue Dec 01 18:57:39 2015 +0200 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Dec 02 19:27:26 2015 +0200 |
tree | 2006fdf4e7d06231d83d8f5afd91b9e7c3edf20d | |
parent | b0ae1536c5248bc5f0f4472b8020a7a9d2ef9293 [diff] |
tests/vhost-user-bridge.c: fix fd leakage This fixes file descriptor leakage in vhost-user-bridge application. Whenever a new callfd or kickfd is set, the previous one should be explicitly closed. File descriptors used to map guest's memory are closed immediately after mmap call. Signed-off-by: Victor Kaplansky <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>