提交 5ac81141 编写于 作者: X xionglei6

init: fix bugs

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 a08f1db7
......@@ -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) {
......
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册