From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TelED-0000cK-NV for qemu-devel@nongnu.org; Sat, 01 Dec 2012 06:27:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TelEB-0007u0-UM for qemu-devel@nongnu.org; Sat, 01 Dec 2012 06:27:25 -0500 Received: from mail-ie0-f173.google.com ([209.85.223.173]:59391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TelEB-0007tu-OY for qemu-devel@nongnu.org; Sat, 01 Dec 2012 06:27:23 -0500 Received: by mail-ie0-f173.google.com with SMTP id e13so1870079iej.4 for ; Sat, 01 Dec 2012 03:27:23 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20121201102951.5477.41087.malone@wampee.canonical.com> References: <20120314192314.1716.70997.malonedeb@chaenomeles.canonical.com> <20121201102951.5477.41087.malone@wampee.canonical.com> Date: Sat, 1 Dec 2012 11:27:23 +0000 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 955379 <955379@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On 1 December 2012 10:29, Janne Karhunen <955379@bugs.launchpad.net> wrote: >> this blocks forever, because the thing that would wake it up is the > signal handler writing to the pipe we're selecting on, but we will never > run the signal handler until select exits > > Duh, makes sense, have to think about this. Thank you for great analysis > :) > > Apparently have to dig into qemu's code to understand this better, but > first thought was that do you think it would be possible to add some > crude hack bit in qemu's signal handler which we could 'almost > atomically' check prior to entering system poll/select/read/whatnot ? > This bit would tell there are user signals queued and handlers should be > executed first.. ? Nope, it's still not going to be non-racy that way (and it would still be a pretty invasive change so it doesn't really make it easier either I think). -- PMM