From 0b68227d3dcf5e5019f091c5cd93f16b9197014f Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Wed, 29 Mar 2006 22:08:25 +0000 Subject: Fix signal delivery while waiting for fence. --- libdrm/xf86mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdrm/xf86mm.c b/libdrm/xf86mm.c index f0369ea5..b8b0f861 100644 --- a/libdrm/xf86mm.c +++ b/libdrm/xf86mm.c @@ -278,7 +278,7 @@ drmWaitFence(int drmFD, drmFence fence) arg.req.fence_type = fence.fenceType; arg.req.fence_seq = fence.fenceSeq; ret = ioctl(drmFD, DRM_IOCTL_FENCE, &arg); - } while (ret == -EAGAIN); + } while (ret != 0 && errno == EAGAIN); if (ret) { drmMsg("drmWaitFence: failed: %s\n", strerror(errno)); -- cgit v1.2.3