a fork-like C-wrapper for clone(), DONE!
Quoted 11 lines · H.P.Anvin
Quoted 4 lines
glibc already contains such a wrapper; it is called
__clone(). At least my system has "man clone" show the man page for it.Actually, the man page is wrong, it's called
clone()unless you definea function with that name yourself (weak symbol.) My version of the man pages are a bit old.
-hpa
Unlike mine, neither glibc nor Linus clone.c wrappers are fork-like. That's why I reworked Linus clone example in the first place
Regards
Francesc Oller