logoalt Hacker News

7jjjjjjjtoday at 5:00 PM2 repliesview on HN

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

Isn't that what posix_spawn is for?


Replies

yxhuvudtoday at 5:15 PM

And how do you think posix_spawn is implemented?

show 1 reply
toast0today at 5:15 PM

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.