summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorposfilu <[email protected]>2024-04-02 15:05:52 +0800
committerMeco Man <[email protected]>2024-04-02 20:32:39 -0400
commitc911ed4875349123ba4079f3d2be9a1f5e1f7ca0 (patch)
treedd400f9eabb66a1888f00a3e1b0104a2176af2cb /src
parent1b857df4e08abdb9e9bf366cbec00687fb82bda5 (diff)
[kernel]SIGNAL节点分配失败应该返回错误
Diffstat (limited to 'src')
-rw-r--r--src/signal.c1
1 files changed, 1 insertions, 0 deletions
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 */