[PATCH] miext: Move SyncShm FDs out of the way of clients

Daniel Stone daniel at fooishbar.org
Fri Nov 22 02:44:24 PST 2013


Hi,

On 22 November 2013 06:19, Keith Packard <keithp at keithp.com> wrote:
> Applications may end up allocating a bunch of shmfence objects, each
> of which uses a file descriptor, which must be kept open lest some
> other client ask for a copy of it later on.
>
> Lacking an API that can turn a memory mapping back into a file
> descriptor, about the best we can do is push the file descriptors out
> of the way of other X clients so that we don't run out of the ability
> to accept new connections.
>
> This uses fcntl F_GETFD to push the FD up above MAXCLIENTS.

ITYM F_DUPFD. In either case, would be nice to make this an os/
function instead, so we can also do this for input devices.

Cheers,
Daniel


More information about the xorg-devel mailing list