Exit was not unmarking the task as scheduled

This commit is contained in:
pjht 2020-07-21 16:31:51 -05:00
parent dbcb761147
commit 24e34f0011

View File

@ -349,6 +349,7 @@ void tasking_exit(uint8_t code) {
}
}
}
unmark_proc_scheduled(currentThread->process->pid);
for (Thread* thread=currentThread->process->firstThread;thread!=NULL;thread=thread->nextThreadInProcess) {
thread->state=THREAD_EXITED;
}