|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: [PATCH]: gdbsx: Check return of write()
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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |