Add a display server and graphical user interface #38
@ -211,7 +211,7 @@ void Thread::send_signal(int signo)
|
||||
check(signo > 0 && signo <= NSIG);
|
||||
pending_signals.set(signo - 1, true);
|
||||
|
||||
if (state == ThreadState::Waiting || state == ThreadState::Sleeping)
|
||||
if (state == ThreadState::Waiting || state == ThreadState::Sleeping || is_in_kernel(®s))
|
||||
{
|
||||
interrupted = true;
|
||||
wake_up();
|
||||
|
Loading…
Reference in New Issue
Block a user