LOGE("[fd %d] recv failed [error %s %d]", fd, err_msg, errno);
return false;
} else if (recv_len == 0) {
- LOGD("EOF");
+ LOGD("[fd %d] EOF", fd);
return false;
}
Name: mused
Summary: A multimedia daemon
-Version: 0.3.116
+Version: 0.3.117
Release: 0
Group: System/Libraries
License: Apache-2.0
g_async_queue_push(ms->diag.msg_aq, (gpointer)dm);
- LOGW("total number of modules = %d ( %s) - %s %p from pid %d %s client (count %d)",
+ LOGW("total number of modules = %d ( %s) - %s module %p from pid %d %s client (count %d)",
len, ms->instance_pid_info, ms_get_command_string(cmd), m, m->pid,
ms_config_get_host_name(m->idx), connection->instance_count[m->idx]);
}
SECURE_LOGD("[close] [%d] MUSE_CHANNEL_MSG %p", m->ch[MUSE_CHANNEL_MSG].sock_fd, m);
muse_core_connection_close(m->ch[MUSE_CHANNEL_MSG].sock_fd);
- SECURE_LOGD("%p thread exit", m->ch[MUSE_CHANNEL_MSG].thread);
+ SECURE_LOGD("msg thread (%p) exit", m->ch[MUSE_CHANNEL_MSG].thread);
g_thread_unref(m->ch[MUSE_CHANNEL_MSG].thread);
m->ch[MUSE_CHANNEL_MSG].thread = NULL;
}
out:
ms_module_dispatch_unlock(m);
- return FALSE;
+ return TRUE;
}
static gpointer _ms_ipc_dispatch_worker(gpointer data)
if (muse_core_msg_object_get_value(MSG_KEY_API, jobj, MUSE_TYPE_INT, &m->api)) {
switch (m->api) {
case API_CREATE:
- SECURE_LOGI("CREATE %p %d", m, fd);
+ SECURE_LOGI("CREATE module %p %d", m, fd);
attempt_to_dispatch = _ms_ipc_dispatch_create(m, jobj);
break;
case API_DESTROY:
- SECURE_LOGI("DESTROY %p %d", m, fd);
+ SECURE_LOGI("DESTROY module %p %d", m, fd);
attempt_to_dispatch = _ms_ipc_dispatch_destroy(m);
break;
default:
GQueue *instance_queue = NULL;
ms_connection_t *connection = NULL;
+ muse_return_val_if_fail(channel == MUSE_CHANNEL_MSG || channel == MUSE_CHANNEL_DATA, FALSE);
+
LOGI("Enter [%s channel]", channel_name[channel]);
muse_return_val_if_fail(muse_server, FALSE);
if (channel == MUSE_CHANNEL_MSG) {
m = g_new0(muse_module_t, 1);
+ SECURE_LOGI("module [%p]", m);
m->ch[MUSE_CHANNEL_MSG].sock_fd = client_sockfd;
m->pid = pid;
g_mutex_init(&m->dispatch_lock);
}
ms_cmd_dispatch(m, cmd);
- SECURE_LOGI("[%s] %p (%s)", module_cmd[cmd], m, muse_server->conf->host[m->idx]);
+ SECURE_LOGI("[%s] module %p (%s)", module_cmd[cmd], m, muse_server->conf->host[m->idx]);
if (cmd == MUSE_MODULE_COMMAND_EXTERNAL_STORAGE_STATE_CHANGED)
muse_server_set_user_data(m, NULL);