• S
    Introduce VIR_CLOSE to be used rather than close() · f04de501
    Stefan Berger 提交于
    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).
    f04de501
HACKING 16.3 KB