Fix the SIGKILL fd leak bug.

This commit is contained in:
4lDO2
2024-03-07 20:01:44 +01:00
parent 8e19da338b
commit 4a3dc2dadd
9 changed files with 58 additions and 29 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ pub fn tick() {
if new_ticks >= 3 {
match switch() {
SwitchResult::Switched { signal: true } => {
crate::context::signal::signal_handler(false);
crate::context::signal::signal_handler();
},
_ => (),
}
@@ -94,8 +94,8 @@ pub unsafe extern "C" fn switch_finish_hook() {
// TODO: unreachable_unchecked()?
crate::arch::stop::emergency_reset();
}
crate::percpu::switch_arch_hook();
arch::CONTEXT_SWITCH_LOCK.store(false, Ordering::SeqCst);
crate::percpu::switch_arch_hook();
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]