← Back to context

Comment by monocasa

4 years ago

I've seen an argument for immediately execing and not marking the whole mutable process VA space as 'trap on write', including the thread stack that you're about immediately write to if you're going to throw that work away and exec(). There's also 'I want support cheap forks on a nommu system and vforking is easier to retrofit in'.

That is the argument for vfork(), and it's been the argument for it since it was incepted, decades ago.