kernel: Completely prevent sending signals to kernel threads
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-08-22 15:25:05 +02:00
parent 33c1a9c92b
commit d144a818d8
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -206,6 +206,8 @@ bool Thread::will_ignore_pending_signal()
void Thread::send_signal(int signo) void Thread::send_signal(int signo)
{ {
if (is_kernel) return;
check(signo > 0 && signo <= NSIG); check(signo > 0 && signo <= NSIG);
pending_signals |= 1 << (signo - 1); pending_signals |= 1 << (signo - 1);