Re:File Descriptor Transfer over Unix Domain Sockets
by fulafel on Monday November 02, 2020 @10:08AM
(#24968859)
The linked code example doesn't seem to do fd passing, but I guess the use case of fd passing in shared memory context would be the other way around: passing fd's that point to shared memory. The shared memory could then be mmap'ed using the passed fd as the handle.
Assuming it's not Windows, where it is possible to explicitly clone a handle for a specific process.