mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:44:58 +00:00
Signals to processes in userspace now work again.
Ugh, how am I going to dispatch signals to processes in the kernel?
This commit is contained in:
parent
dd887e158b
commit
c8b308910e
2 changed files with 25 additions and 3 deletions
|
@ -789,7 +789,7 @@ void Process::dispatch_signal(byte signal)
|
|||
|
||||
if ((ret_cs & 3) == 0) {
|
||||
// FIXME: Handle send_signal to process currently in kernel code.
|
||||
kprintf("Boo! dispatch_signal with return to %w:%x\n", ret_cs, ret_eip);
|
||||
kprintf("Boo! dispatch_signal in %s(%u) with return to %w:%x\n", name().characters(), pid(), ret_cs, ret_eip);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
@ -827,6 +827,8 @@ void Process::dispatch_signal(byte signal)
|
|||
|
||||
push_value_on_stack(m_return_from_signal_trampoline.get());
|
||||
|
||||
m_pending_signals &= ~(1 << signal);
|
||||
|
||||
dbgprintf("signal: Okay, %s(%u) has been primed\n", name().characters(), pid());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue