Browse Source

[kernel]SIGNAL节点分配失败应该返回错误

posfilu 1 year ago
parent
commit
e2541ef9e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/signal.c

+ 1 - 0
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 */