struct caller_info *info = (struct caller_info *)data;
char *privilege;
- _D("check id %u, cause %d, resp %d", id, cause, resp);
+ _W("check id %u, cause %d, resp %d", id, cause, resp);
privilege = g_hash_table_lookup(info->id_table,
GUINT_TO_POINTER(id));
return AMD_CYNARA_RET_ERROR;
}
+ _W("[__CYNARA__] cynara_check_id(%u), user(%s|%s|%s), privilege(%s)",
+ id, info->client, info->session, info->user, privilege);
g_hash_table_insert(info->id_table, GUINT_TO_POINTER(id),
strdup(privilege));
{
int ret;
+ _W("[__CYNARA__] fd(%d), GIOCondition(%d)", fd, cond);
+ ret = cynara_async_process(r_cynara);
+ if (ret != CYNARA_API_SUCCESS)
+ _E("process error %d", ret);
+
if (cond & (G_IO_ERR | G_IO_HUP | G_IO_NVAL)) {
cynara_fd_id = 0;
return G_SOURCE_REMOVE;
}
- ret = cynara_async_process(r_cynara);
- if (ret != CYNARA_API_SUCCESS)
- _E("process error %d", ret);
-
return G_SOURCE_CONTINUE;
}