4 ms·
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
by huhtenberg 6y 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.
- fulafel 6y agoThe 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.