mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +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
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…
Add table
Add a link
Reference in a new issue