Hacker News new | ask | show | jobs
by huhtenberg 2058 days ago
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.

1 comments

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.