mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-01-31 09:31:58 -05:00
uspc_ret: ensure task is dropped before exiting
Fix current task double-borrow bug when exiting with a signal.
This commit is contained in:
committed by
Ashwin Naren
parent
6d8854fe30
commit
c304ec07fe
@@ -239,6 +239,7 @@ pub fn dispatch_userspace_task(ctx: *mut UserCtx) {
|
||||
None => continue,
|
||||
Some(KSignalAction::Term | KSignalAction::Core) => {
|
||||
// Terminate the process, and find a new task.
|
||||
drop(task);
|
||||
kernel_exit_with_signal(signal, false);
|
||||
|
||||
state = State::PickNewTask;
|
||||
|
||||
Reference in New Issue
Block a user