Possible Duplicate:
How does system() exactly work in linux?
For the sake of my curiosity, I want to know that how does system() function spawn the process and its internal implemenation ? Is is using fork , exec internally ?
On my Debian box it uses clone() that itself calls sys_clone(). You can use strace to look at system calls.
精彩评论