소스 검색

[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
     {
         LOG_E("The allocation of signal info node failed.");
+        return -RT_EEMPTY;
     }
 
     /* deliver signal to this thread */