file-posix: handle EINTR during ioctl
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 06:34:52 +0000 (08:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 08:54:13 +0000 (10:54 +0200)
commitbd80936a4f18075e0e407df180801a9743ce290c
treee95f933bef92578b036057d5ad14efeef46545e2
parent09e20abddaf94ff27dcced1df81f69a713627a94
file-posix: handle EINTR during ioctl

Similar to other handle_aiocb_* functions, handle_aiocb_ioctl needs to cater
for the possibility that ioctl is interrupted by a signal.  Otherwise, the
I/O is incorrectly reported as a failure to the guest.

Reported-by: Gordon Watson <gwatson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/file-posix.c