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

Re: [Xen-devel] [PATCH 10/13] libxl: don't try to fclose file twice on error in libxl_userdata_store



Matthew Daley writes ("Re: [PATCH 10/13] libxl: don't try to fclose file twice 
on error in libxl_userdata_store"):
> On Tue, Dec 3, 2013 at 1:14 AM, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> wrote:
> > This is not correct.  If you use write(2) directly you have to call it
> > in a loop, in case of partial writes.  This is quite tiresome.  I
> > think it would be better to simply fix the function not to "retry" the
> > fclose if it fails the first time.
> 
> Would using libxl_write_exactly be acceptable instead?

Yes, I guess, if you prefer.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.