Pending signals are cleared and files locks are released for the child process. In older version of Linux, the page table is duplicated and the pages are copied page by page from the parent address space to the child's.
Nowadays, the copying is replaced by using copy-on-write feature which shorten the process creation time and minimize wastage of copying pages that are not required by the child.
vfork() was introduced in 3.0 BSD release. vfork() stipulates that the caller must immediately call exec() or _exit() after vfork(). vfork() will also suspend the parent and so the child can share the parent memory without incurring the memory copy. Consequently the child must not modify any memory.
No comments:
Post a Comment