[libvirt] [PATCH 06/12] src: convert code to use new socket portability wrappers

Pavel Hrdina phrdina at redhat.com
Wed Jan 15 12:38:57 UTC 2020


On Fri, Jan 10, 2020 at 03:41:10PM +0000, Daniel P. Berrangé wrote:
> Convert to use socket wrappers. Aside from the header file
> include change, this requires changing close -> closesocket
> since our portability isn't trying to replace the close
> function.
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  src/rpc/virnetsocket.c      | 34 +++++++++++++++++++++++-----------
>  src/util/virportallocator.c |  8 +++-----
>  2 files changed, 26 insertions(+), 16 deletions(-)

I wonder if we should change all the remaining VIR_FORCE_CLOSE and
VIR_AUTOCLOSE related to sockets as well to be on a safe side.

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200115/11c9c9f0/attachment-0001.sig>


More information about the libvir-list mailing list