add more debug of fd create and close

This commit is contained in:
Wim Taymans 2020-06-02 14:06:51 +02:00
parent 803c2860ed
commit bb1cb530fc
3 changed files with 13 additions and 3 deletions

View file

@ -1266,7 +1266,7 @@ static void node_initialized(void *data)
node->writefd = impl->fds[1];
spa_loop_add_source(node->data_loop, &node->data_source);
pw_log_debug(NAME " %p: transport fd %d %d", node, impl->fds[0], impl->fds[1]);
pw_log_debug(NAME " %p: transport read-fd:%d write-fd:%d", node, impl->fds[0], impl->fds[1]);
size = sizeof(struct spa_io_buffers) * MAX_AREAS;

View file

@ -996,13 +996,13 @@ struct pw_impl_node *pw_context_create_node(struct pw_context *context,
goto error_clean;
}
pw_log_debug(NAME" %p: new", this);
this->properties = properties;
if ((res = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK)) < 0)
goto error_clean;
pw_log_debug(NAME" %p: new fd:%d", this, res);
this->source.fd = res;
this->source.func = node_on_fd_events;
this->source.data = this;