WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[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