mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
Actually destroy tasks after they crash.
This commit is contained in:
parent
1a801e5737
commit
9d5de91cf3
3 changed files with 20 additions and 7 deletions
|
@ -84,13 +84,8 @@ void exception_13_handler()
|
|||
HANG;
|
||||
}
|
||||
|
||||
current->setState(Task::Crashing);
|
||||
if (!scheduleNewTask()) {
|
||||
kprintf("Failed to schedule a new task :(\n");
|
||||
HANG;
|
||||
}
|
||||
|
||||
switchNow();
|
||||
// NOTE: This will schedule a new task.
|
||||
Task::taskDidCrash(current);
|
||||
}
|
||||
|
||||
#define EH(i, msg) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue