summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
authorShell <[email protected]>2024-03-28 23:42:56 +0800
committerGitHub <[email protected]>2024-03-28 23:42:56 +0800
commit83e95bdff4c48c661b50e1eec56d5fd293b28fbb (patch)
tree9e0c2065950f0804e5009da71c8e0f590224cade /src/ipc.c
parent40e26f4909fa61ada775ba86b44d8300aaf5d250 (diff)
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <[email protected]> Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 33b9cfe420..5ffcf017c2 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -598,7 +598,7 @@ static rt_err_t _rt_sem_take(rt_sem_t sem, rt_int32_t timeout, int suspend_flag)
thread = rt_thread_self();
/* reset thread error number */
- thread->error = -RT_EINTR;
+ thread->error = RT_EINTR;
LOG_D("sem take: suspend thread - %s", thread->parent.name);