From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSPaH-0003Xy-Ik for qemu-devel@nongnu.org; Sun, 28 Oct 2012 05:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSPaG-0005QA-Iy for qemu-devel@nongnu.org; Sun, 28 Oct 2012 05:55:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSPaG-0005PK-AO for qemu-devel@nongnu.org; Sun, 28 Oct 2012 05:55:08 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9S9t7Vk010390 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 28 Oct 2012 05:55:07 -0400 Message-ID: <508D00F6.1010803@redhat.com> Date: Sun, 28 Oct 2012 11:55:02 +0200 From: Orit Wasserman MIME-Version: 1.0 References: <1350555758-29988-1-git-send-email-pbonzini@redhat.com> <1350555758-29988-10-git-send-email-pbonzini@redhat.com> In-Reply-To: <1350555758-29988-10-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 09/12] migration: close socket QEMUFile from socket_close List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, quintela@redhat.com On 10/18/2012 12:22 PM, Paolo Bonzini wrote: > The common suffix now is process_incoming_migration+qemu_fclose. > > Signed-off-by: Paolo Bonzini > --- > migration-tcp.c | 2 ++ > migration-unix.c | 2 ++ > savevm.c | 1 + > 3 file modificati, 5 inserzioni(+) > > diff --git a/migration-tcp.c b/migration-tcp.c > index 07715de..463f7f6 100644 > --- a/migration-tcp.c > +++ b/migration-tcp.c > @@ -111,6 +111,8 @@ static void tcp_accept_incoming_migration(void *opaque) > > process_incoming_migration(f); > qemu_fclose(f); > + return; > + > out: > closesocket(c); > } > diff --git a/migration-unix.c b/migration-unix.c > index def1969..46e04fc 100644 > --- a/migration-unix.c > +++ b/migration-unix.c > @@ -144,6 +144,8 @@ static void unix_accept_incoming_migration(void *opaque) > > process_incoming_migration(f); > qemu_fclose(f); > + return; > + > out: > close(c); > } > diff --git a/savevm.c b/savevm.c > index 7eca28b..ae5e617 100644 > --- a/savevm.c > +++ b/savevm.c > @@ -212,6 +212,7 @@ static int socket_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size) > static int socket_close(void *opaque) > { > QEMUFileSocket *s = opaque; > + closesocket(s->fd); > g_free(s); > return 0; > } > Reviewed-by: Orit Wasserman