Why not just have a one-step spawn?
Why not just have a one-step spawn?
Posted Dec 23, 2024 17:00 UTC (Mon) by gutschke (subscriber, #27910)In reply to: Why not just have a one-step spawn? by bluca
Parent article: Process creation in io_uring
No writable/executable mapping is used in my proof of concept. Once the ephemeral ELF image has been exec()'d, there is only a single readable/executable mapping.
I use a single mapping for both code and read-only data. That approach slightly simplified the already painfully complicated open-coded serialization of the various data structures that need to be passed into the child. But that could be split into two separate mappings for a production release.
Or instead of passing data as part of the ELF image, all data could be passed into the ephemeral child over a pipe(). Those design details are certainly up for review.
