summaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
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);