1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:47:34 +00:00

Kernel: Implement basic SIGSTOP and SIGCONT support.

This commit is contained in:
Andreas Kling 2019-02-28 12:27:26 +01:00
parent c5a32d139a
commit e427b514dc
3 changed files with 19 additions and 4 deletions

View file

@ -168,7 +168,7 @@ bool Scheduler::pick_next()
// FIXME: Maybe we could check when returning from a syscall if there's a pending
// signal and dispatch it then and there? Would that be doable without the
// syscall effectively being "interrupted" despite having completed?
if (process.in_kernel() && !process.is_blocked())
if (process.in_kernel() && !process.is_blocked() && !process.is_stopped())
return true;
// NOTE: dispatch_one_pending_signal() may unblock the process.
bool was_blocked = process.is_blocked();