mcctrl+mcexec: fix per-proc data allocation for fork()

This commit is contained in:
Balazs Gerofi
2016-09-02 15:04:35 +09:00
parent d550bced78
commit bfbc94dfb0
4 changed files with 61 additions and 56 deletions

View File

@ -1981,7 +1981,7 @@ retry_tid:
}
/* In a single threaded process TID equals to PID */
settid(new, 0, cpuid, -1, 0, NULL);
new->tid = newproc->pid;
new->vm->address_space->pids[0] = new->proc->pid;
dkprintf("fork(): new pid: %d\n", new->proc->pid);