mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel: VERIFY that signals are not sent to Kernel processes
Kernel processes can't handle signals, nor should they ever receive any
This commit is contained in:
committed by
Andreas Kling
parent
2c996cbbee
commit
0911112286
@@ -707,6 +707,7 @@ void Process::terminate_due_to_signal(u8 signal)
|
||||
|
||||
ErrorOr<void> Process::send_signal(u8 signal, Process* sender)
|
||||
{
|
||||
VERIFY(is_user_process());
|
||||
// Try to send it to the "obvious" main thread:
|
||||
auto receiver_thread = Thread::from_tid(pid().value());
|
||||
// If the main thread has died, there may still be other threads:
|
||||
|
||||
Reference in New Issue
Block a user