From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiMp3-0001Ru-0b for qemu-devel@nongnu.org; Tue, 11 Dec 2012 05:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiMox-00035U-5u for qemu-devel@nongnu.org; Tue, 11 Dec 2012 05:12:20 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:45930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiMow-00035K-VQ for qemu-devel@nongnu.org; Tue, 11 Dec 2012 05:12:15 -0500 Received: by mail-we0-f173.google.com with SMTP id z2so1595600wey.4 for ; Tue, 11 Dec 2012 02:12:14 -0800 (PST) Date: Tue, 11 Dec 2012 11:12:10 +0100 From: Stefan Hajnoczi Message-ID: <20121211101210.GE796@stefanha-thinkpad.muc.redhat.com> References: <9AFE08236B46DE418D958EE249411AC21B8713BC@g01jpexmbyt23> <20121129141732.GC13694@stefanha-thinkpad.redhat.com> <9AFE08236B46DE418D958EE249411AC21B878E9C@g01jpexmbyt23> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9AFE08236B46DE418D958EE249411AC21B878E9C@g01jpexmbyt23> Subject: Re: [Qemu-devel] main-loop.c: About Select handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Furukawa, Eiji" Cc: "qemu-devel@nongnu.org" On Thu, Dec 06, 2012 at 12:30:19AM +0000, Furukawa, Eiji wrote: > > The select() do not masked signal in os_host_main_loop_wait. > > For example, qemu-timer.c gives SIGALRM regularly. > Even if a buffer of select is empty, What does "a buffer of select is empty" mean? > I think that it is a problem that this select() does exit by this SIGALRM. The main loop will iterate again. Why is it a problem if select() returns? Stefan