1
Recently I read a post by Peter Hutterer explaining about a new protocol called inputfd that is intended to pass a file Descriptor directly to other processes without the interaction of the composer.
I was curious, how is it possible to pass a file from one process to another?
Could show a minimum example of code that does this?
In UNIX (and Linux) environment the process of passing a file descriptor between any processes is well known and uses the function "sendmsg" between local sockets (family AF_UNIX or AF_LOCAL). This Soen page has several examples of how-to: http://stackoverflow.com/questions/28003921/sending-file-descriptor-by-linux-socket/.
– zentrunix
@nullptr, that’s exactly what I was looking for. Please post your comment in response form and I’ll mark it as the correct one.
– jlHertel