Re: [Qemu-devel] [PATCH 1/6] file-posix: Fix EINTR handling

2018-06-15 Thread Stefan Hajnoczi
On Fri, Jun 08, 2018 at 02:04:12PM +0800, Fam Zheng wrote: > EINTR should be checked against errno, not ret. While fixing the bug, > collecting the branches with a switch block. > > Signed-off-by: Fam Zheng > --- > block/file-posix.c | 20 ++-- > 1 file changed, 10 insertions(+),

[Qemu-devel] [PATCH 1/6] file-posix: Fix EINTR handling

2018-06-07 Thread Fam Zheng
EINTR should be checked against errno, not ret. While fixing the bug, collecting the branches with a switch block. Signed-off-by: Fam Zheng --- block/file-posix.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c in