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:
@@ -36,6 +36,8 @@ syscallret syscall_fork(arch_regs* ctx){
|
|||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newthread->tid = newproc->pid;
|
||||||
|
|
||||||
newproc->parent = proc;
|
newproc->parent = proc;
|
||||||
newproc->sibling = proc->child;
|
newproc->sibling = proc->child;
|
||||||
proc->child = newproc;
|
proc->child = newproc;
|
||||||
|
|||||||
Reference in New Issue
Block a user