[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] qemu on MacOS, failing to respond to ctrl-C
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] qemu on MacOS, failing to respond to ctrl-C |
Date: |
Sun, 17 Feb 2013 16:38:31 +0000 |
On 17 February 2013 15:50, Blue Swirl <address@hidden> wrote:
> On Sun, Feb 17, 2013 at 12:59 AM, Peter Maydell
> <address@hidden> wrote:
>> However, having thought about this I'm now a bit dubious about
>> the use of longjmp in cpu_resume_from_signal() -- this is
>> jumping out of a signal handler, so if we do nothing with
>> the signal mask surely we'll end up running the CPU thread
>> with that signal blocked when it was not before? I don't know
>> why this doesn't cause issues on Linux...
>
> Long time ago, QEMU did not use any threads. They were introduced by
> CONFIG_IOTHREAD which then took over.
Yes, but even in a single-threaded model, if you longjmp
out of a signal handler for SIGSEGV or whatever then SIGSEGV
is going to remain blocked by mistake...
-- PMM