From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te4vt-0004U2-VP for qemu-devel@nongnu.org; Thu, 29 Nov 2012 09:17:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te4vn-0000Oq-Pn for qemu-devel@nongnu.org; Thu, 29 Nov 2012 09:17:41 -0500 Received: from mail-ea0-f173.google.com ([209.85.215.173]:58443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te4vn-0000Ni-KL for qemu-devel@nongnu.org; Thu, 29 Nov 2012 09:17:35 -0500 Received: by mail-ea0-f173.google.com with SMTP id i13so6009797eaa.4 for ; Thu, 29 Nov 2012 06:17:34 -0800 (PST) Date: Thu, 29 Nov 2012 15:17:32 +0100 From: Stefan Hajnoczi Message-ID: <20121129141732.GC13694@stefanha-thinkpad.redhat.com> References: <9AFE08236B46DE418D958EE249411AC21B8713BC@g01jpexmbyt23> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9AFE08236B46DE418D958EE249411AC21B8713BC@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 Wed, Nov 28, 2012 at 03:08:24AM +0000, Furukawa, Eiji wrote: > About a source of qemu-1.2.0/main-loop.c > The select handling of os_host_main_loop_wait function > I do not seem to do Exit by interrupts such as SIGUSR1 > Will not it be necessary to make modifications? > > Before > LineNumber:308 ret = select(nfds + 1, &rfds, &wfds, &xfds, tvarg); > > After(Example) > do { > ret = select(nfds + 1, &rfds, &wfds, &xfds, tvarg); > } while(ret == -1 && (errno == EINTR || errno == EAGAIN)) What is the specific bug or problem you're seeing? QEMU uses several signals internally and sets up per-thread signal masks appropriately. Stefan