You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The field indicates that you are supposed to send or receive a file descriptor over the Unix socket you're connected to (so long as it's not TCP). The other side can then e.g. mmap memory on it.
Let's talk about receiving for now, which might be the more complex part.
The mechanism has only been implemented in xcb and not Xlib, as Keith Packard says. Qt has started using the API fairly recently, in commit qt/qtbase@24adaa9
Of more interest to us is the possibly sole implementation. The crux of it is slightly complicated but boils down to: each time we get to read from the socket, accept sideband file descriptors as well using the appropriate syscall and pair them to what we see in upcoming replies, or wait for more FDs again if input data went too far ahead.
A new XML element
fd
has showed up in the protocol description for theshm
extension.A temporary fix in commit 490ec2a ignores this field.
What is it for? (File descriptor name?)
The text was updated successfully, but these errors were encountered: