forked from Bananymous/banan-os
Kernel: Don't crash when terminating process with signal
This commit is contained in:
@@ -623,6 +623,9 @@ namespace Kernel
|
|||||||
{
|
{
|
||||||
Processor::set_interrupt_state(InterruptState::Disabled);
|
Processor::set_interrupt_state(InterruptState::Disabled);
|
||||||
setup_process_cleanup();
|
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();
|
Processor::yield();
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user