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

Re: [Xen-devel] Re: [PATCH]: gdbsx: Check return of write()



On Wed, Nov 3, 2010 at 4:59 AM, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> wrote:
Gianni Tedesco writes ("[PATCH]: gdbsx: Check return of write()"):
> -        write(remote_fd, "-", 1);
> +        if ( write(remote_fd, "-", 1) != 1 )
> +            perror("write");

Thanks.  I've applied this.  I fixed the formatting to be constent
with the other parts of the same file, and also arranged for errors to
actually cause the function to return -1 as the head comment suggests
it should.

What branch is this applied to?
I'm not seeing it in http://xenbits.xensource.com/xen-unstable.hg

-Bruce
 
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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