]> git.proxmox.com Git - qemu.git/commit
Fix signal handling when io-thread is disabled
authorAlexandre Raymond <cerbere@gmail.com>
Tue, 14 Jun 2011 14:05:36 +0000 (10:05 -0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 16 Jul 2011 19:41:08 +0000 (19:41 +0000)
commit5664aed99a4ab6e661b40e475449a32150f46184
tree9e5bc8f7389590a674dca733bdf74566820033c1
parent107a47cc2dac1b6c5edae0121831713161cb70c5
Fix signal handling when io-thread is disabled

Changes since v1:
- take pthread_sigmask() out of the ifdef as it is now common
to both parts.

This fix effectively blocks, in the main thread, the signals handled
by signalfd or the compatibility signal thread.

This way, such signals are received synchronously in the main thread
through sigfd_handler() instead of triggering the signal handler
directly, asynchronously.

Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
Acked-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpus.c