mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:15:07 +00:00
Kernel: Sending a signal to another process needs to disable interrupts.
This commit is contained in:
parent
749db8237c
commit
c6ca6522fc
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,6 @@ void Process::terminate_due_to_signal(byte signal)
|
|||
|
||||
void Process::send_signal(byte signal, Process* sender)
|
||||
{
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
ASSERT(signal < 32);
|
||||
|
||||
if (sender)
|
||||
|
@ -762,6 +761,7 @@ void Process::send_signal(byte signal, Process* sender)
|
|||
else
|
||||
dbgprintf("signal: kernel sent %d to %s(%u)\n", signal, name().characters(), pid());
|
||||
|
||||
InterruptDisabler disabler;
|
||||
m_pending_signals |= 1 << signal;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue