1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

Unbreak sys$sigreturn() after colonel process changes.

This commit is contained in:
Andreas Kling 2018-11-07 23:21:32 +01:00
parent 43f40a3050
commit f792349853
3 changed files with 9 additions and 8 deletions

View file

@ -56,12 +56,12 @@ bool Scheduler::pick_next()
return true;
}
if (process.state() == Process::ExecPhase1) {
process.set_state(Process::ExecPhase2);
if (process.state() == Process::Skip1SchedulerPass) {
process.set_state(Process::Skip0SchedulerPasses);
return true;
}
if (process.state() == Process::ExecPhase2) {
if (process.state() == Process::Skip0SchedulerPasses) {
process.set_state(Process::Runnable);
return true;
}