← Back to context

Comment by medoc

4 years ago

Last time I looked, posix_spawn() just called fork/exec

That's an implementation detail at this point. The idea is to have a single syscall that takes all the information needed to spawn the process, and does so atomically, without the need to spread it across several calls. On Win32, that's CreateProcess(). On POSIX, the equivalent is posix_spawn().