diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-08-06 09:51:25 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-08-06 09:51:25 +0000 |
commit | 6eb5733a3cad93b00043d48fa22b9df7d1f5ab33 (patch) | |
tree | 35cf5afe09e2954bd11d3288b4d36071299747b5 /block-raw.c | |
parent | 15e6690aca348a7dc8772b8f1197cf13c8764335 (diff) |
fixed blocking io emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2090 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block-raw.c')
-rw-r--r-- | block-raw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block-raw.c b/block-raw.c index 14f4bd5b3c..adb3d39add 100644 --- a/block-raw.c +++ b/block-raw.c @@ -308,6 +308,11 @@ void qemu_aio_wait(void) { sigset_t set; int nb_sigs; + +#ifndef QEMU_TOOL + if (qemu_bh_poll()) + return; +#endif sigemptyset(&set); sigaddset(&set, aio_sig_num); sigwait(&set, &nb_sigs); |