]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNetSocket: allow to not close FD
authorPino Toscano <ptoscano@redhat.com>
Wed, 9 Nov 2016 14:28:32 +0000 (15:28 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Nov 2016 14:50:51 +0000 (15:50 +0100)
commit0e9fec979dc38f2a5268d17be9e3aefc4d5398e1
tree36b9d95ecf40a7e053246435f69cee7e697865ff
parent03fa904c0c0cb26c21a4e751d0325db5c6b283ba
virNetSocket: allow to not close FD

Add an internal variable to mark the FD as "not owned" by the
virNetSocket, in case the internal implementation takes the actual
ownership of the descriptor; this avoids a warning when closing the
socket, as the FD would be invalid.
src/rpc/virnetsocket.c