瀏覽代碼

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

posfilu 1 年之前
父節點
當前提交
c911ed4875
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/signal.c

+ 1 - 0
src/signal.c

@@ -651,6 +651,7 @@ int rt_thread_kill(rt_thread_t tid, int sig)
     else
     else
     {
     {
         LOG_E("The allocation of signal info node failed.");
         LOG_E("The allocation of signal info node failed.");
+        return -RT_EEMPTY;
     }
     }
 
 
     /* deliver signal to this thread */
     /* deliver signal to this thread */