2 ms·
fork(2) is largely superseded by clone(2) which works similarly to rfork. The CLONE_VM flag is equivalent to rfork's RFMEM.
by khuey 8y ago
fork(2) is largely superseded by clone(2) which works similarly to rfork. The CLONE_VM flag is equivalent to rfork's RFMEM.
- deleted 8y ago[deleted]
- jadbox 8y agoWeird, I've never seen clone(2) used before
- caf 8y agoIt's used in the implementation of pthread_create().
- dullgiulio 8y agoAlso fork(3) (the libc wrapper using GLIBC), is often just calling clone(2) internally: https://stackoverflow.com/questions/18904292/is-it-true-that-fork-calls-clone-internally https://stackoverflow.com/questions/18904292/is-it-true-that...