Why not just have a one-step spawn?
Why not just have a one-step spawn?
Posted Dec 21, 2024 15:32 UTC (Sat) by khim (subscriber, #9252)In reply to: Why not just have a one-step spawn? by josh
Parent article: Process creation in io_uring
> However, typically, you do want to inherit at least some state from the current process.
Just package it neatly and pass it into a new process, damn it!
> At the very least, there might be value in having a CLONE_ flag that makes the new process have an empty memory map rather than inheriting the caller's memory map.That's not possible: you need something in the process that you may execute. You can not start from zero. But if you would instead pass fd number that contains image that should be loaded there then with simple, almost trivial in kernel change you would enable fully-userpace solutions.
But hey, that's too simple! There are not enough buzzwords in that approach! How can be accept something so sane? Nope, we need to push for io_uring, BPF or maybe even webasm! More complicated, more invasive, yet much more buzzword-compliant approach!
