On 17 February 2013 15:50, Blue Swirl <[email protected]> wrote: > On Sun, Feb 17, 2013 at 12:59 AM, Peter Maydell > <[email protected]> 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
