mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Kernel: Restore the previous thread state on SIGCONT after SIGSTOP
When stopping a thread with the SIGSTOP signal, we now store the thread state in Thread::m_stop_state. That state is then restored on SIGCONT. This fixes an issue where previously-blocked threads would unblock upon resume. Now they simply resume in the Blocked state, and it's up to the regular unblocking mechanism to unblock them. Fixes #1326.
This commit is contained in:
parent
fbe9aad70a
commit
2839bb0be1
2 changed files with 11 additions and 4 deletions
|
@ -486,6 +486,7 @@ private:
|
|||
u32 m_priority_boost { 0 };
|
||||
|
||||
u8 m_stop_signal { 0 };
|
||||
State m_stop_state { Invalid };
|
||||
|
||||
bool m_dump_backtrace_on_finalization { false };
|
||||
bool m_should_die { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue