Question: how vfork system call works?
Answer: The vfork() function creates a new process as does fork(), except that the child process shares the same address space as the calling process. Execution of the calling process is blocked until the child process calls one of the exec() family of functions, or calls _exit().