← Back to context

Comment by 7jjjjjjj

1 day ago

>It feels crazy that we don't have a way to directly express the latter thing

Isn't that what posix_spawn is for?

posix_spawn addresses the need from userspace. Under the hood, it's still doing more or less a fork/exec, with the baggage that comes with it. A syscall would be nicer.

And how do you think posix_spawn is implemented?