kernel: Completely prevent sending signals to kernel threads
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
33c1a9c92b
commit
d144a818d8
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user