diff options
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); |