procfs/do_fork: wait until procfs entries are registered

Do not return from fork() until mcctrl side has created mckernel's
procfs entries for the child PID.

This fixes programs doing fork() immediately followed by opening
/proc/<child pid>/something, and would get some error

Refs: #1189
Change-Id: Ie10ea56b65c55f59e96a1ab6ef83a1070e36048d
This commit is contained in:
Dominique Martinet
2018-08-30 14:13:38 +09:00
committed by Masamichi Takagi
parent b11377f2e9
commit ecc850dfef
4 changed files with 37 additions and 13 deletions

View File

@@ -207,7 +207,8 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
case SCD_MSG_PROCFS_TID_CREATE:
case SCD_MSG_PROCFS_TID_DELETE:
procfsm_packet_handler(__os, pisp->msg, pisp->pid, pisp->arg);
procfsm_packet_handler(__os, pisp->msg, pisp->pid, pisp->arg,
pisp->resp_pa);
break;
case SCD_MSG_GET_VDSO_INFO: