fork syscall: fix first thread not being set in threads array

This commit is contained in:
Matheus
2024-05-08 21:23:16 -03:00
parent 6087a20d81
commit cab7901825
+1
View File
@@ -48,6 +48,7 @@ syscallret_t syscall_fork(context_t *ctx) {
nproc->umask = _cpu()->thread->proc->umask;
nproc->root = sched_getroot();
nproc->cwd = sched_getcwd();
nproc->threads[0] = nthread;
ARCH_CONTEXT_THREADSAVE(nthread, ctx);