Explorar o código

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

posfilu hai 1 ano
pai
achega
c911ed4875
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
     {
         LOG_E("The allocation of signal info node failed.");
+        return -RT_EEMPTY;
     }
 
     /* deliver signal to this thread */