Re: [PATCH 09/11] Inhibit desktop shutdown while any virtual machines are running

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

 



On 11/01/2012 05:47 AM, Alexander Larsson wrote:

>> @@ -1065,6 +1173,8 @@ void virNetServerDispose(void *obj)
>>      virNetServerPtr srv = obj;
>>      int i;
>>  
>> +    VIR_FORCE_CLOSE(srv->autoShutdownInhibitFd);
>> +
> 
> Don't these have to check if autoShutdownInhibitFd != -1 before closing?

VIR_FORCE_CLOSE() does the checking on your behalf.  It's entirely safe
to pass -1 to our close wrapper.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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