Revert "Fix cynara core implemention" 55/267055/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 24 Nov 2021 22:39:01 +0000 (07:39 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 24 Nov 2021 22:39:06 +0000 (07:39 +0900)
This reverts commit 00b4517499143e0517c1db56f66323a891e9b701.

Change-Id: I450c90aeffc5c07cf54d1936115b28831d441f83

src/modules/cynara-core/src/amd_cynara_core.c

index 0b3ae8ffc4df4d17b154196d8b3defd2f8ff52d2..bf81a6845867b783b8163eff2a9d7b5e349de200 100644 (file)
@@ -156,7 +156,7 @@ static void __resp_cb(cynara_check_id id, cynara_async_call_cause cause,
        struct caller_info *info = (struct caller_info *)data;
        char *privilege;
 
-       _W("check id %u, cause %d, resp %d", id, cause, resp);
+       _D("check id %u, cause %d, resp %d", id, cause, resp);
 
        privilege = g_hash_table_lookup(info->id_table,
                        GUINT_TO_POINTER(id));
@@ -212,7 +212,6 @@ static enum amd_cynara_result __check_server(struct caller_info *info,
                return AMD_CYNARA_RET_ERROR;
        }
 
-       _W("check id %u, privilege %s, client %s", id, privilege, info->client);
        g_hash_table_insert(info->id_table, GUINT_TO_POINTER(id),
                        strdup(privilege));
 
@@ -516,7 +515,6 @@ static gboolean __proc_cb(gint fd, GIOCondition cond, gpointer data)
 {
        int ret;
 
-       _W("[__CYNARA__] fd(%d), condition(%d)", fd, cond);
        if (cond & (G_IO_ERR | G_IO_HUP | G_IO_NVAL)) {
                cynara_fd_id = 0;
                return G_SOURCE_REMOVE;
@@ -551,8 +549,7 @@ static void __status_cb(int old_fd, int new_fd, cynara_async_status status,
                if (status == CYNARA_STATUS_FOR_RW)
                        cond |= G_IO_OUT;
 
-               cynara_fd_id = g_unix_fd_add_full(G_PRIORITY_HIGH, new_fd, cond,
-                               __proc_cb, data, NULL);
+               cynara_fd_id = g_unix_fd_add(new_fd, cond, __proc_cb, data);
                cynara_fd = new_fd;
        }
 }