3 ms·
I don't think we'll see the fork/exec semantics going away anyway soon - inheriting privileges/file-descriptors etc. in this way is quite core to all unix like
by noselasd 8y ago
I don't think we'll see the fork/exec semantics going away anyway soon - inheriting privileges/file-descriptors etc. in this way is quite core to all unix like OSs.
posix does provide posix_spawn() though, which an OS could implement in a more efficient way than fork()+exec().
- anticensor 8y agoexec() can remain as it is still useful, only fork needs to be deprecated as fork can be emulated by clone in common use cases.
- pjmlp 8y agoClone is a Linux only syscall.
- deleted 8y ago[deleted]
- cryptonector 8y agoIt 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.
- trasz 8y agoOSX as well.