do_fork: If mcexec succeeds for fork and McKernel fails fork, the child process of mcexec will remain.

This commit is contained in:
Tomoki Shirasawa
2018-02-14 16:37:38 +09:00
parent 840acd6021
commit c9157f273f
2 changed files with 75 additions and 64 deletions

View File

@ -2615,6 +2615,13 @@ retry_tid:
old->tid,
new->tid);
if (!(clone_flags & CLONE_VM)) {
request1.number = __NR_clone;
request1.args[0] = 1;
request1.args[1] = new->tid;
do_syscall(&request1, ihk_mc_get_processor_id(), 0);
}
runq_add_thread(new, cpuid);
if (ptrace_event) {