Implement vfork system call

It's implemented by making it issue clone system call internally with
the arguments of (SIGCHLD, 0, 0, 0, 0). The feature in which the caller
of vfork blocks until the child issues exit/execve is not implemented.
Refer to #233.
This commit is contained in:
Masamichi Takagi
2014-09-06 21:37:59 +09:00
parent 0de6a30426
commit 19fa391d4f
2 changed files with 33 additions and 17 deletions

View File

@@ -46,6 +46,7 @@ SYSCALL_HANDLED(34, pause)
SYSCALL_HANDLED(39, getpid)
SYSCALL_HANDLED(56, clone)
SYSCALL_DELEGATED(57, fork)
SYSCALL_HANDLED(58, vfork)
SYSCALL_HANDLED(59, execve)
SYSCALL_HANDLED(60, exit)
SYSCALL_HANDLED(61, wait4)