diff options
| author | posfilu <[email protected]> | 2024-04-02 15:05:52 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-04-16 22:44:03 -0400 |
| commit | e2541ef9e9df28b250bcd6d9ea3c50f07b644bba (patch) | |
| tree | 7968762dea9480b8a0a690ee931791a2c4b9cb99 /src | |
| parent | 5c593e6789ea766f4a31d660ac75988006fa2aa6 (diff) | |
[kernel]SIGNAL节点分配失败应该返回错误
Diffstat (limited to 'src')
| -rw-r--r-- | src/signal.c | 1 |
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 */ |
