process removal: remove a few bugs and race conditions

This commit is contained in:
Matheus
2022-10-08 22:03:46 -03:00
parent a17630acb7
commit 0bd861c19f
3 changed files with 18 additions and 17 deletions
-7
View File
@@ -362,13 +362,6 @@ void sched_dequeue(){
timer_resume();
thread_t* curthread = arch_getcls()->thread;
// context and thread destruction will happen in the waitpid()
// the pointer to this thread will reside in proc->threads
curthread->proc->threads = curthread;
// for safety