Skip to contentSkip to conversation

Fix: UST per-UID channels persist across application teardown

PATCH David Goulet 1 participant 1 message Jul 4, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20130702202033.GA11433@Krystal

#1 lore raw

Merged!

Mathieu Desnoyers:

Quoted 25 lines

Fixes #582

---

src/bin/lttng-sessiond/ust-app.c +6 -4
index 2d7a81f..c329650 100644
@@ -377,10 +377,12 @@ void delete_ust_app_channel(int sock, struct ust_app_channel *ua_chan,
 		delete_ust_app_event(sock, ua_event);
 	}
 
-	/* Wipe and free registry from session registry. */
-	registry = get_session_registry(ua_chan->session);
-	if (registry) {
-		ust_registry_channel_del_free(registry, ua_chan->key);
+	if (ua_chan->session->buffer_type == LTTNG_BUFFER_PER_PID) {
+		/* Wipe and free registry from session registry. */
+		registry = get_session_registry(ua_chan->session);
+		if (registry) {
+			ust_registry_channel_del_free(registry, ua_chan->key);
+		}
 	}
 
 	if (ua_chan->obj != NULL) {