Re:A future for fork(2)
by cryptonector on Friday October 05, 2018 @12:26PM
(#18149423)
It is usually implemented as vfork()+exec/exit.
Some OSes implement posix_spawn() as a system call. IIRC NetBSD has had that, and Solaris 12 has it too.
OSX as well.
Re:A future for fork(2)
by anticensor on Friday October 05, 2018 @09:08AM
(#18147775)
exec() can remain as it is still useful, only fork needs to be deprecated as fork can be emulated by clone in common use cases.
posix does provide posix_spawn() though, which an OS could implement in a more efficient way than fork()+exec().