diff mbox

-ERESTARTSYS on ioctl

Message ID 1262805012.17560.23.camel@pcjc2lap
State Rejected
Headers show

Commit Message

Peter Clifton Jan. 6, 2010, 7:10 p.m. UTC
None
diff mbox

Patch

diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index b306e5d..592965e 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -1300,7 +1300,7 @@  drm_intel_gem_bo_exec(drm_intel_bo *bo, int used,
                ret = ioctl(bufmgr_gem->fd,
                            DRM_IOCTL_I915_GEM_EXECBUFFER,
                            &execbuf);
-       } while (ret != 0 && errno == EINTR);
+       } while (ret != 0 && errno == EAGAIN);
 
        if (ret != 0) {
                ret = -errno;