Fork() in the road paper
Fork() in the road paper
Posted Jun 5, 2026 23:11 UTC (Fri) by gutschke (subscriber, #27910)In reply to: Fork() in the road paper by malmedal
Parent article: Moving beyond fork() + exec()
It's been ages since I last experimented with CLONE_VM, so I probably don't remember all the details. But I think it had really awkward calling conventions that made it pretty much impossible to use from C code.
If my cover ever was productized in some form, adding yet another assembly wrapper is obviously doable. But I intentionally tried to keep things as high level and portable as it's possible with this sort of low level code.
And yes, it's ugly, and very far from portable without at least some effort. That's the nature of these APIs
