diff options
author | Jan Kiszka | 2014-10-27 15:05:10 +0100 |
---|---|---|
committer | Peter Maydell | 2014-10-27 15:09:27 +0100 |
commit | 817ef04db2cfa2df04daffd6917f4ea7605f6403 (patch) | |
tree | 2c4d84c6cdda963f4aa929766311487b8649cee3 /hw/display/tcx.c | |
parent | MAINTAINERS: add myself under 'general project admin' section (diff) | |
download | qemu-817ef04db2cfa2df04daffd6917f4ea7605f6403.tar.gz qemu-817ef04db2cfa2df04daffd6917f4ea7605f6403.tar.xz qemu-817ef04db2cfa2df04daffd6917f4ea7605f6403.zip |
Make qemu_shutdown_requested signal-safe
qemu_shutdown_requested may be interrupted by qemu_system_killed. If the
latter sets shutdown_requested after qemu_shutdown_requested has read it
but before it was cleared, the shutdown event is lost. Fix this by using
atomic_xchg.
This provides a different fix for the problem which commit 15124e142
attempts to deal with. That commit breaks use of ^C to drop into gdb,
and so this approach is better (and 15124e142 can be reverted).
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
[PMM: commit message tweak]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/display/tcx.c')
0 files changed, 0 insertions, 0 deletions