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

Don't unblock a blocked process when it ignores a signal.

This commit is contained in:
Andreas Kling 2018-11-16 21:14:25 +01:00
parent a788e85c09
commit 6cedb88153
3 changed files with 13 additions and 11 deletions

View file

@ -96,7 +96,8 @@ bool Scheduler::pick_next()
// syscall effectively being "interrupted" despite having completed?
if (process.in_kernel() && !process.is_blocked())
return true;
process.dispatch_one_pending_signal();
if (!process.dispatch_one_pending_signal())
return true;
if (process.is_blocked()) {
process.m_was_interrupted_while_blocked = true;
process.unblock();