fix: fork return pid instead uid
This commit is contained in:
parent
f75e121251
commit
c9a92819b4
@ -18,5 +18,5 @@ u16 fork(void)
|
|||||||
asm("movl %%esp, %0" : "=m"(daddy_esp));
|
asm("movl %%esp, %0" : "=m"(daddy_esp));
|
||||||
child->esp = child->esp0 + (daddy_esp - current_task->esp0);
|
child->esp = child->esp0 + (daddy_esp - current_task->esp0);
|
||||||
toris();
|
toris();
|
||||||
return current_task == child ? 0 : child->uid;
|
return current_task == child ? 0 : child->pid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user