mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Sending a signal to yourself should block until dispatch.
By moving the sending (and receiving) thread into the BlockedSignal state, we ensure that the thread doesn't continue executing until the signal has been dispatched.
This commit is contained in:
parent
6ffcee9176
commit
0cac84d6bd
Notes:
sideshowbarker
2024-07-19 13:56:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0cac84d6bd4
1 changed files with 1 additions and 1 deletions
|
@ -1232,7 +1232,7 @@ int Process::sys$kill(pid_t pid, int signal)
|
|||
}
|
||||
if (pid == m_pid) {
|
||||
current->send_signal(signal, this);
|
||||
Scheduler::yield();
|
||||
current->block(Thread::State::BlockedSignal);
|
||||
return 0;
|
||||
}
|
||||
InterruptDisabler disabler;
|
||||
|
|
Loading…
Reference in a new issue