diff --git a/kernel/src/thread/Thread.cpp b/kernel/src/thread/Thread.cpp index 27c35dcd..6c8e0806 100644 --- a/kernel/src/thread/Thread.cpp +++ b/kernel/src/thread/Thread.cpp @@ -206,6 +206,8 @@ bool Thread::will_ignore_pending_signal() void Thread::send_signal(int signo) { + if (is_kernel) return; + check(signo > 0 && signo <= NSIG); pending_signals |= 1 << (signo - 1);