Attaching file descriptors to processes with CLONE_FD
Attaching file descriptors to processes with CLONE_FD
Posted Apr 2, 2015 20:43 UTC (Thu) by josh (subscriber, #17465)In reply to: Attaching file descriptors to processes with CLONE_FD by hmh
Parent article: Attaching file descriptors to processes with CLONE_FD
Additional information to distinguish between structures would depend on the structures. For example, if we added a flag to obtain SIGSTOP/SIGCONT information for children (as you can currenly obtain via SIGCHLD), we'd just return exactly the same clonefd_info structure, with CLD_STOPPED or CLD_CONTINUED in the code field; no need to add types or flags for that.
Posted Apr 2, 2015 21:48 UTC (Thu)
by dlang (guest, #313)
[Link] (1 responses)
I would have thought that the problem with /proc, specifically with slabinfo data that continues to need to be faked by slab replacements, even when it doesn't actually mean anything, would have shown this to be an "anti-pattern"
yes, including version info wastes a little space from the beginning, but it means that you can actually eliminate fields in the future if you find that you should.
Posted Apr 2, 2015 21:53 UTC (Thu)
by josh (subscriber, #17465)
[Link]
And no, we can't ever eliminate a field even with a version number, unless we have backward compatibility code to return old versions to old userspace.
Attaching file descriptors to processes with CLONE_FD
Attaching file descriptors to processes with CLONE_FD