From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvMet-0006Dg-NK for qemu-devel@nongnu.org; Wed, 16 Jan 2013 01:39:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvMes-0003YP-Od for qemu-devel@nongnu.org; Wed, 16 Jan 2013 01:39:35 -0500 Received: from mail-pb0-f49.google.com ([209.85.160.49]:52580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvMes-0003YK-IX for qemu-devel@nongnu.org; Wed, 16 Jan 2013 01:39:34 -0500 Received: by mail-pb0-f49.google.com with SMTP id un15so541856pbc.22 for ; Tue, 15 Jan 2013 22:39:33 -0800 (PST) Message-ID: <50F64B1C.6050504@gmail.com> Date: Wed, 16 Jan 2013 14:39:24 +0800 From: Liu Yuan MIME-Version: 1.0 References: <50F3BEE2.5090802@gmail.com> <50F3CB54.6080506@redhat.com> <50F3CFDD.2000003@gmail.com> <50F3D8F7.5010400@redhat.com> In-Reply-To: <50F3D8F7.5010400@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] 100% CPU when sockfd is half-closed and unexpected behavior for qemu_co_send() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Anthony Liguori , qemu-devel@nongnu.org, Stefan Hajnoczi On 01/14/2013 06:07 PM, Paolo Bonzini wrote: > Ok. I guess the problem is that we use select(), not poll(), so we have > no way to get POLLHUP notifications. But the write fd_set receives the > file descriptor because indeed writes will not block. Hi Paolo, is there any movement switch select() to poll()? Thanks, Yuan