Kernel: Don't crash when terminating process with signal
This commit is contained in:
parent
2b48933f29
commit
b2e3aefa72
|
@ -623,6 +623,9 @@ 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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue