Kernel: Process::exit() now uses the new Scheduler::reschedule()
We use this new function while waiting for all blocking threads to resume execution
This commit is contained in:
		
							parent
							
								
									1aec3fcedd
								
							
						
					
					
						commit
						5032e79be3
					
				| 
						 | 
				
			
			@ -129,10 +129,9 @@ namespace Kernel
 | 
			
		|||
		{
 | 
			
		||||
			m_exit_status.semaphore.unblock();
 | 
			
		||||
			m_lock.unlock();
 | 
			
		||||
			// TODO: add proper software reschedule
 | 
			
		||||
			Scheduler::get().set_current_thread_sleeping(0);
 | 
			
		||||
			Scheduler::get().reschedule();
 | 
			
		||||
			m_lock.lock();
 | 
			
		||||
		}
 | 
			
		||||
		m_lock.lock();
 | 
			
		||||
 | 
			
		||||
		m_threads.clear();
 | 
			
		||||
		for (auto& open_fd : m_open_files)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue