News for hackers. Stuff that matters.
Re:File Descriptor Transfer over Unix Domain Sockets by huhtenberg on Monday November 02, 2020 @08:36AM (#24967962)
I don't follow. How can file descriptors be passed through a shared memory to another process and remain valid in its context?

Assuming it's not Windows, where it is possible to explicitly clone a handle for a specific process.

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.