mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user