diff --git a/kernel/cpu/i386/tasking.c b/kernel/cpu/i386/tasking.c index 4147ca3..f043827 100644 --- a/kernel/cpu/i386/tasking.c +++ b/kernel/cpu/i386/tasking.c @@ -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; }