X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Fust-app.c;h=063a2fd0a528af211ef6ab4e82baf0acb6cc8a8b;hp=8bfb6b264aa5c27166d75905c1b6a55f2dae6716;hb=7a9cce7d405d187a499b147cb68563f36f88f0d0;hpb=2c348c103aae0cb4a2832c1946578e40fe0a61af diff --git a/lttng-sessiond/ust-app.c b/lttng-sessiond/ust-app.c index 8bfb6b264..063a2fd0a 100644 --- a/lttng-sessiond/ust-app.c +++ b/lttng-sessiond/ust-app.c @@ -592,9 +592,6 @@ static int create_ust_channel(struct ust_app *app, } ua_chan->handle = ua_chan->obj->handle; - ua_chan->attr.shm_fd = ua_chan->obj->shm_fd; - ua_chan->attr.wait_fd = ua_chan->obj->wait_fd; - ua_chan->attr.memory_map_size = ua_chan->obj->memory_map_size; DBG2("UST app channel %s created successfully for pid:%d and sock:%d", ua_chan->name, app->key.pid, app->key.sock); @@ -1299,6 +1296,11 @@ void ust_app_unregister(int sock) DBG("PID %d unregistering with sock %d", lta->key.pid, sock); + /* Remove application from socket hash table */ + lttng_ht_lookup(ust_app_sock_key_map, (void *)((unsigned long) sock), &iter); + ret = lttng_ht_del(ust_app_sock_key_map, &iter); + assert(!ret); + /* Get the node reference for a call_rcu */ lttng_ht_lookup(ust_app_ht, (void *)((unsigned long) lta->key.pid), &iter); node = lttng_ht_iter_get_node_ulong(&iter); @@ -1307,6 +1309,7 @@ void ust_app_unregister(int sock) goto error; } + /* Remove application from PID hash table */ ret = lttng_ht_del(ust_app_ht, &iter); assert(!ret); call_rcu(&node->head, delete_ust_app_rcu);