From: Ian Jackson Subject: Re: [PATCH]: gdbsx: Check return of write() Date: Wed, 3 Nov 2010 11:59:24 +0000 Message-ID: <19665.20124.997347.267958@mariner.uk.xensource.com> References: <20101102103414.GA13749@aepfle.de> <1288714297.23619.59.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1288714297.23619.59.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gianni Tedesco Cc: Olaf Hering , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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.