What is the difference between fork() and vfork()?
The intent of vfork was to eliminate the overhead of copying the whole process image if you only want to do an exec* in the child. Because exec* replaces the whole image of the child process, there is no point in copying the image of the parent. if ((pid = vfork()) == 0) { execl(…, … Read more