mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20: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;
|
||||
return retv;
|
||||
}
|
||||
|
||||
newthread->tid = newproc->pid;
|
||||
|
||||
newproc->parent = proc;
|
||||
newproc->sibling = proc->child;
|
||||
|
||||
Reference in New Issue
Block a user