use ftn->pid instead of proc->pid

This commit is contained in:
NAKAMURA Gou
2014-12-22 16:11:22 +09:00
parent d4ba4dc8b3
commit a6ac906105
3 changed files with 3 additions and 3 deletions

View File

@@ -1666,7 +1666,7 @@ unsigned long do_fork(int clone_flags, unsigned long newsp,
/* In a single threaded process TID equals to PID */
settid(new, 0, cpuid, -1);
dkprintf("fork(): new pid: %d\n", new->pid);
dkprintf("fork(): new pid: %d\n", new->ftn->pid);
/* clear user space PTEs and set new rpgtable so that consequent
* page faults will look up the right mappings */
request1.number = __NR_munmap;