Re: [PATCH v4] introduce VIR_CLOSE to be used rather than close()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/19/2010 08:08 AM, Stefan Berger wrote:
There are lots of places where close() is being used. In this patch I am
only cleaning up usage of close() in src/conf where the problems were.


ACK with a couple of nits:

Index: libvirt-acl/src/conf/domain_conf.c
===================================================================
--- libvirt-acl.orig/src/conf/domain_conf.c
+++ libvirt-acl/src/conf/domain_conf.c
@@ -44,8 +44,8 @@
#include "network.h"
#include "macvtap.h"
#include "nwfilter_conf.h"
-#include "ignore-value.h"

Don't delete this line, since ignore_value() is already in direct use in this file prior to the patch.

+ - eg close a file descriptor in an error path, without losing the
previous
+ errno value
+
+ VIR_FORCE_CLOSE(fd)

s/$/;/ (the html version got it right)

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]