summaryrefslogtreecommitdiffstatsabout
path: root/SylixOS
diff options
context:
space:
mode:
authorHanhui <hanhui@acoinfo.com>2021-04-16 08:03:17 (GMT)
committer Hanhui <hanhui@acoinfo.com>2021-04-16 08:03:17 (GMT)
commit33b29c01d04149064299e85f5face284cbc4e16b (patch)
treeac64cf2d11796be3ed017fe25f072c5e761087db /SylixOS
parentc055767d9902eb38accd2d8a8caae576b07079aa (diff)
downloadlibsylixos-master.zip
libsylixos-master.tar.gz
libsylixos-master.tar.bz2
Fixed timer errno error.HEADmaster
Diffstat (limited to 'SylixOS')
-rw-r--r--SylixOS/system/ptimer/ptimer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/SylixOS/system/ptimer/ptimer.c b/SylixOS/system/ptimer/ptimer.c
index f7db9b2..2b95685 100644
--- a/SylixOS/system/ptimer/ptimer.c
+++ b/SylixOS/system/ptimer/ptimer.c
@@ -131,6 +131,7 @@ INT timer_create_internal (clockid_t clockid, struct sigevent *sigeventT,
ulTimer = API_TimerCreate("posix_tmr",
LW_OPTION_ITIMER | ulOption, LW_NULL); /* 创建普通定时器 */
if (ulTimer == LW_OBJECT_HANDLE_INVALID) {
+ _ErrorHandle(EAGAIN);
return (PX_ERROR);
}