summaryrefslogtreecommitdiff
path: root/block-raw.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-06 09:51:25 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-08-06 09:51:25 +0000
commit6eb5733a3cad93b00043d48fa22b9df7d1f5ab33 (patch)
tree35cf5afe09e2954bd11d3288b4d36071299747b5 /block-raw.c
parent15e6690aca348a7dc8772b8f1197cf13c8764335 (diff)
downloadqemu-6eb5733a3cad93b00043d48fa22b9df7d1f5ab33.tar.gz
qemu-6eb5733a3cad93b00043d48fa22b9df7d1f5ab33.tar.bz2
qemu-6eb5733a3cad93b00043d48fa22b9df7d1f5ab33.zip
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.c5
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);