summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas@tungstengraphics.com>2006-03-29 22:08:25 +0000
committerThomas Hellstrom <thomas@tungstengraphics.com>2006-03-29 22:08:25 +0000
commit0b68227d3dcf5e5019f091c5cd93f16b9197014f (patch)
treec57b55d8088f15858d79a3ae70d1e91e9f984d41
parenta12c38ae9a9d37dc3864ad7dfa772e40a958ddf7 (diff)
Fix signal delivery while waiting for fence.drm-ttm_20060330
-rw-r--r--libdrm/xf86mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86mm.c b/libdrm/xf86mm.c
index f0369ea5d..b8b0f8610 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));