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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user