[libvirt] [PATCHv4 09/15] util: rename virFileOperation to virFileOpenAs
Eric Blake
eblake at redhat.com
Fri Mar 18 22:01:35 UTC 2011
On 03/11/2011 08:39 AM, Laine Stump wrote:
>> path, mode);
>> goto childerror;
>> }
>> - if (flags& VIR_FILE_OP_RETURN_FD) {
>> + {
>> VIR_FORCE_CLOSE(pair[0]);
>
>
> This VIR_FORCE_CLOSE(pair[0]) should be moved up to the very start of
> the child code - otherwise any error prior to this point will leave it
> dangling for _exit() to clean up.
Well, _exit() is guaranteed to close fds, so I was being a bit lazy in
the child :) But I'll go ahead and rearrange this.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110318/67081c06/attachment-0001.sig>
More information about the libvir-list
mailing list