part of Issue#994
mcexec: open syscall moves to arch_dep do_fork: don't use __NR_fork. use __NR_clone vfork: moves to arch_dep
This commit is contained in:
@@ -2450,7 +2450,7 @@ retry_tid:
|
||||
}
|
||||
/* fork() a new process on the host */
|
||||
else {
|
||||
request1.number = __NR_fork;
|
||||
request1.number = __NR_clone;
|
||||
request1.args[0] = 0;
|
||||
if(clone_flags & CLONE_PARENT){
|
||||
if(oldproc->ppid_parent->pid != 1)
|
||||
@@ -2614,11 +2614,6 @@ retry_tid:
|
||||
return new->tid;
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(vfork)
|
||||
{
|
||||
return do_fork(CLONE_VFORK|SIGCHLD, 0, 0, 0, 0, ihk_mc_syscall_pc(ctx), ihk_mc_syscall_sp(ctx));
|
||||
}
|
||||
|
||||
SYSCALL_DECLARE(set_tid_address)
|
||||
{
|
||||
cpu_local_var(current)->clear_child_tid =
|
||||
|
||||
Reference in New Issue
Block a user