intel: Repeat execbuffer if interrupted by signal

Repeat while EINTR, not EAGAIN! One more source of corruption
erradicated, hurray!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
main
Chris Wilson 2010-03-07 14:15:40 +00:00
parent 581cafbc24
commit a4041e096c
1 changed files with 1 additions and 1 deletions

View File

@ -1559,7 +1559,7 @@ drm_intel_gem_bo_exec2(drm_intel_bo *bo, int used,
do { do {
ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, ret = ioctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_EXECBUFFER2,
&execbuf); &execbuf);
} while (ret != 0 && errno == EAGAIN); } while (ret != 0 && errno == EINTR);
if (ret != 0) { if (ret != 0) {
ret = -errno; ret = -errno;