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:
parent
a788e85c09
commit
6cedb88153
3 changed files with 13 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue