Received: from eggs.gnu.org ([140.186.70.92]:47550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROTtL-000509-Kj for qemu-devel@nongnu.org; Thu, 10 Nov 2011 07:38:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROTtH-0005zz-F5 for qemu-devel@nongnu.org; Thu, 10 Nov 2011 07:38:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROTtH-0005zp-4c for qemu-devel@nongnu.org; Thu, 10 Nov 2011 07:37:59 -0500 Date: Thu, 10 Nov 2011 10:36:26 -0200 From: Eduardo Habkost Message-ID: <20111110123626.GJ29718@otherpad.lan.raisama.net> References: <1320876205-16113-1-git-send-email-ehabkost@redhat.com> <1320876205-16113-10-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 09/10] tcp_close(): check for close() errors too List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dong Xu Wang Cc: Michael Roth , qemu-devel@nongnu.org, Juan Quintela On Thu, Nov 10, 2011 at 04:21:46PM +0800, Dong Xu Wang wrote: > > =A0 =A0 if (s->fd !=3D -1) { > > - =A0 =A0 =A0 =A0close(s->fd); > > + =A0 =A0 =A0 =A0if (close(s->fd) < 0) > > + =A0 =A0 =A0 =A0 =A0 =A0r =3D -errno; > Braces {} are necessary, or checkpatch.pl will give warnings, also in > other patches in your series. >=20 > No mistake, just reminder. :) I will send v3 with the coding style fixed (I was supposed to fix this before submitting v2 but I forgot). Thanks! --=20 Eduardo