summary refs log tree commit diff stats
path: root/linux-user/signal.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-04-08 11:05:42 +0800
committerEric Blake <eblake@redhat.com>2018-04-10 07:42:48 -0500
commitc3988519c4fc3e458fbac4f7814dd775ef4a68d7 (patch)
tree6a62f4ffe09424d7cd33ab4557229b4bba203fdc /linux-user/signal.c
parentfb4fe32d5b6290deabe752b51cc1cc2a9e8573db (diff)
downloadfocaccia-qemu-c3988519c4fc3e458fbac4f7814dd775ef4a68d7.tar.gz
focaccia-qemu-c3988519c4fc3e458fbac4f7814dd775ef4a68d7.zip
iotests: fix wait_until_completed()
If there are more than one events, wait_until_completed() might return
the 2nd event even if the 1st event is JOB_COMPLETED, since the for loop
will continue to run even if completed is set to True.

It never happened before, but it can be triggered when OOB is enabled
due to the RESUME startup message. Fix that up.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180408030542.17855-1-peterx@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'linux-user/signal.c')
0 files changed, 0 insertions, 0 deletions