3 ms·
The point was you don't need subreapers, so you'd presumably just remove the relevant code.
by vezzy-fnord 11y ago
The point was you don't need subreapers, so you'd presumably just remove the relevant code.
- JoshTriplett 11y agoThe kernel adopting orphaned processes doesn't make PR_SET_CHILD_SUBREAPER unnecessary. If you just wanted the processes to get reparented somewhere and reaped when they exit, you could let PID 1 do that. You also seem to have intentionally ignored the general point in favor of picking apart a specific example. The solution to all uses of non-portable interfaces isn't either "you can implement a compatibility layer using features of your target OS" or "you don't really want that code anyway, just rip it out".