mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:37:43 +00:00
Before sys$write returns, check for pending unmasked signals.
If there is one, put the process into a new BlockedSignal state which makes the next scheduler iteration dispatch the signal.
This commit is contained in:
parent
8605711f4b
commit
cba05ce75e
2 changed files with 9 additions and 1 deletions
|
@ -52,6 +52,7 @@ public:
|
|||
BlockedSleep,
|
||||
BlockedWait,
|
||||
BlockedRead,
|
||||
BlockedSignal,
|
||||
};
|
||||
|
||||
enum RingLevel {
|
||||
|
@ -64,7 +65,7 @@ public:
|
|||
|
||||
bool is_blocked() const
|
||||
{
|
||||
return m_state == BlockedSleep || m_state == BlockedWait || m_state == BlockedRead;
|
||||
return m_state == BlockedSleep || m_state == BlockedWait || m_state == BlockedRead || m_state == BlockedSignal;
|
||||
}
|
||||
|
||||
PageDirectory& page_directory() { return *m_page_directory; }
|
||||
|
@ -317,6 +318,7 @@ static inline const char* toString(Process::State state)
|
|||
case Process::BlockedSleep: return "Sleep";
|
||||
case Process::BlockedWait: return "Wait";
|
||||
case Process::BlockedRead: return "Read";
|
||||
case Process::BlockedSignal: return "Signal";
|
||||
case Process::BeingInspected: return "Inspect";
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue