Kernel: Remove unnecessary hack

This is no longer needed as thread unlocks its spinlock before calling
Process::exit() on terminating signal
This commit is contained in:
Bananymous 2025-06-06 11:13:55 +03:00
parent 652eb2346c
commit ef76ffa1c1
1 changed files with 0 additions and 3 deletions

View File

@ -627,9 +627,6 @@ namespace Kernel
{
Processor::set_interrupt_state(InterruptState::Disabled);
setup_process_cleanup();
// This is super hacky but prevents a crash in yield :D
if (m_signal_lock.current_processor_has_lock())
m_signal_lock.unlock(InterruptState::Disabled);
Processor::yield();
ASSERT_NOT_REACHED();
}