Fix excp_handler deadlock.

This commit is contained in:
4lDO2
2024-06-24 10:07:15 +02:00
parent b94904a660
commit 5b25e2cda7
+2 -4
View File
@@ -106,10 +106,8 @@ pub fn excp_handler(signal: usize) {
let mut context = current.write();
let Some(eh) = context.sig.as_ref().and_then(|s| s.excp_handler) else {
context.being_sigkilled = true;
context::switch();
unreachable!();
drop(context);
crate::syscall::process::exit(SIGKILL << 8);
};
// TODO