]> git.proxmox.com Git - mirror_qemu.git/commit - block-raw-posix.c
block: make raw aio signaling non-blocking (Gerd Hoffman)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Nov 2008 19:23:17 +0000 (19:23 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Nov 2008 19:23:17 +0000 (19:23 +0000)
commite20e830bbdc502986d6fd30c26b06c37a5ee0611
tree40c7cb86c63295ac5b9bcdbb31e14f2770a35d29
parent984b51814712ae4337b9e908da8a03166e2b7289
block: make raw aio signaling non-blocking (Gerd Hoffman)

This patch switches the read handle of the signaling pipe into
non-blocking mode.  This avoids unwanted blocking reads and also
allows to read all bytes out of the signaling pipe in case we got
signaled more that once before the handler ran.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5716 c046a42c-6fe2-441c-8c8c-71466251a162
block-raw-posix.c