From c911ed4875349123ba4079f3d2be9a1f5e1f7ca0 Mon Sep 17 00:00:00 2001 From: posfilu Date: Tue, 2 Apr 2024 15:05:52 +0800 Subject: [kernel]SIGNAL节点分配失败应该返回错误 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/signal.c b/src/signal.c index 23b352cb1f..28d0fd1c9f 100644 --- a/src/signal.c +++ b/src/signal.c @@ -651,6 +651,7 @@ int rt_thread_kill(rt_thread_t tid, int sig) else { LOG_E("The allocation of signal info node failed."); + return -RT_EEMPTY; } /* deliver signal to this thread */ -- cgit v1.3.1