Re: [PATCH v3] 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 07:34 AM, Daniel Veillard wrote:
On Fri, Oct 15, 2010 at 06:06:26PM -0400, Stefan Berger wrote:
   V3:
    - many small nits addressed

  V2:
     - following Eric's suggestions and picking up his code suggestions

Since bugs due to double-closed file descriptors are difficult to
track down in a multi-threaded system, I am introducing the
VIR_CLOSE(fd) macro to help avoid mistakes here.

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.

I also dare to declare close() as being deprecated in libvirt code
base (HACKING).

Signed-off-by: Stefan Berger<stefanb@xxxxxxxxxx>

   ACK, let's the cleanup begin ...

Did we want a v4, now that "ignore-value.h" has been fixed?

--
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]