|
|
|
|
|
|
|
|
|
|
xen-devel
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.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|