From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFnjF-0004tH-UR for qemu-devel@nongnu.org; Mon, 17 Oct 2011 09:59:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFnjE-0002JY-P9 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 09:59:45 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:61466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFnjE-0002JS-Mi for qemu-devel@nongnu.org; Mon, 17 Oct 2011 09:59:44 -0400 Received: by yxp4 with SMTP id 4so3852613yxp.5 for ; Mon, 17 Oct 2011 06:59:44 -0700 (PDT) Message-ID: <4E9C34CD.8020302@codemonkey.ws> Date: Mon, 17 Oct 2011 08:59:41 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <25f29b775f9d35250bf876886d303a726a856e6d.1318326683.git.quintela@redhat.com> In-Reply-To: <25f29b775f9d35250bf876886d303a726a856e6d.1318326683.git.quintela@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 10/36] migration: set error if select return one error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org On 10/11/2011 05:00 AM, Juan Quintela wrote: > Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori Regards, Anthony Liguori > --- > migration.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/migration.c b/migration.c > index 090c925..56c2b1c 100644 > --- a/migration.c > +++ b/migration.c > @@ -457,6 +457,10 @@ void migrate_fd_wait_for_unfreeze(void *opaque) > > ret = select(s->fd + 1, NULL,&wfds, NULL, NULL); > } while (ret == -1&& (s->get_error(s)) == EINTR); > + > + if (ret == -1) { > + qemu_file_set_error(s->file); > + } > } > > int migrate_fd_close(void *opaque)