xwayland: keep temp files out of the client mask

Xwayland opens anonymous files for its sharing buffers, move these
file descriptors out of the range of the client select mask to avoid
reaching the maximum number of clients prematurely.

https://bugs.freedesktop.org/show_bug.cgi?id=91072

Tested-by: Olivier Fourdan <fourdan@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-06-23 15:05:31 +02:00 committed by Olivier Fourdan
parent fa12f2c150
commit 3c859112d3

View File

@ -82,7 +82,7 @@ create_tmpfile_cloexec(char *tmpname)
}
#endif
return fd;
return os_move_fd(fd);
}
/*