struct wl_resource *resource)
{
int sock_fd=-1;
+ pid_t pid = 0;
+
+ wl_client_get_credentials(client, &pid, NULL, NULL);
sock_fd = socket(PF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0);
if (sock_fd < 0)
{
- ERR("Could not create socket: %m");
+ ERR("Could not create socket: %m, (client=%p, pid=%d)\n", client, pid);
return;
}
tizen_embedded_compositor_send_socket(resource, sock_fd);
+
+ INF("[%s] sock_fd(=%d) sent! (client=%p, pid=%d)\n", __FUNCTION__, sock_fd, client, pid);
close(sock_fd);
}
_e_tizen_embedded_compositor_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_t id)
{
struct wl_resource *res;
+ pid_t pid = 0;
if (!(res = wl_resource_create(client, &tizen_embedded_compositor_interface, MIN(version, 1), id)))
{
- ERR("Could not create tizen_video_interface resource: %m");
+ wl_client_get_credentials(client, &pid, NULL, NULL);
+ ERR("Could not create tizen_video_interface resource: %m, (client=%p, pid=%d)\n", client, pid);
wl_client_post_no_memory(client);
return;
}