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:
committed by
Masamichi Takagi
parent
b11377f2e9
commit
ecc850dfef
@@ -507,7 +507,8 @@ struct procfs_file {
|
||||
};
|
||||
|
||||
void procfs_answer(struct mcctrl_usrdata *ud, int pid);
|
||||
int procfsm_packet_handler(void *os, int msg, int pid, unsigned long arg);
|
||||
int procfsm_packet_handler(void *os, int msg, int pid, unsigned long arg,
|
||||
unsigned long resp_pa);
|
||||
void add_tid_entry(int osnum, int pid, int tid);
|
||||
void add_pid_entry(int osnum, int pid);
|
||||
void delete_tid_entry(int osnum, int pid, int tid);
|
||||
|
||||
Reference in New Issue
Block a user