From 840000d02bffafcaa9c43c97d70ee4983f0b41cc Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 1 Aug 2024 21:41:54 +0300 Subject: [PATCH] Kernel: Make sure null signal is not send with kill() --- kernel/kernel/Process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/kernel/Process.cpp b/kernel/kernel/Process.cpp index 56bd3b9562..3805df72f8 100644 --- a/kernel/kernel/Process.cpp +++ b/kernel/kernel/Process.cpp @@ -1762,7 +1762,8 @@ namespace Kernel if (pid == m_pid) { - add_pending_signal(signal); + if (signal) + add_pending_signal(signal); return 0; }