From 3c859112d38860764bcdb205ab461d00db502f45 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 23 Jun 2015 15:05:31 +0200 Subject: [PATCH] xwayland: keep temp files out of the client mask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Michel Dänzer Signed-off-by: Chris Wilson --- hw/xwayland/xwayland-shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-shm.c b/hw/xwayland/xwayland-shm.c index 2d0ce3eb6..1022c0d70 100644 --- a/hw/xwayland/xwayland-shm.c +++ b/hw/xwayland/xwayland-shm.c @@ -82,7 +82,7 @@ create_tmpfile_cloexec(char *tmpname) } #endif - return fd; + return os_move_fd(fd); } /*