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-16 22:44:03 -0400
commite2541ef9e9df28b250bcd6d9ea3c50f07b644bba (patch)
tree7968762dea9480b8a0a690ee931791a2c4b9cb99 /src
parent5c593e6789ea766f4a31d660ac75988006fa2aa6 (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 77379b1a31..266726af5b 100644
--- a/src/signal.c
+++ b/src/signal.c
@@ -647,6 +647,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 */