mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58:22 +00:00
fork: fix new thread's tid not being set
This commit is contained in:
@@ -35,6 +35,8 @@ syscallret syscall_fork(arch_regs* ctx){
|
|||||||
retv.errno = err;
|
retv.errno = err;
|
||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newthread->tid = newproc->pid;
|
||||||
|
|
||||||
newproc->parent = proc;
|
newproc->parent = proc;
|
||||||
newproc->sibling = proc->child;
|
newproc->sibling = proc->child;
|
||||||
|
|||||||
Reference in New Issue
Block a user