From 5ac8114151f3adcd2a9bc1e3286065427e2bf1fb Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Fri, 21 Jan 2022 16:47:16 +0800 Subject: [PATCH] init: fix bugs Signed-off-by: xionglei6 --- services/init/init_common_service.c | 2 +- services/loopevent/include/loop_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/init/init_common_service.c b/services/init/init_common_service.c index f24a7e6f..c94dde8b 100755 --- a/services/init/init_common_service.c +++ b/services/init/init_common_service.c @@ -78,7 +78,7 @@ static int SetAccessToken(const Service *service) INIT_ERROR_CHECK(service != NULL, return SERVICE_FAILURE, "%s failed", service->name); INIT_ERROR_CHECK(service->capsArgs.count > 0, return SERVICE_SUCCESS, "%s invalid, count is %d", service->name, service->capsArgs.count); - WaitForFile("/dev/ioctl_device", WAIT_MAX_COUNT); + WaitForFile("/dev/ioctl_device", WAIT_MAX_SECOND); uint64_t tokenId = GetAccessTokenId(service->name, service->capsArgs.argv, service->capsArgs.count, (char *)service->apl); if (tokenId == 0) { diff --git a/services/loopevent/include/loop_event.h b/services/loopevent/include/loop_event.h index 810afabe..7c278d21 100755 --- a/services/loopevent/include/loop_event.h +++ b/services/loopevent/include/loop_event.h @@ -164,7 +164,7 @@ void LE_CloseSignalTask(const LoopHandle loopHandle, const SignalHandle signalHa /** * 监控句柄变化 */ -#define TASK_WATCHER 0x04 +#define TASK_WATCHER 0x10 #define WATCHER_ONCE 0x0100 typedef void (*ProcessWatchEvent)(const WatcherHandle taskHandle, int fd, uint32_t *events, const void *context); typedef struct { -- GitLab