From: David Goulet Date: Fri, 19 Oct 2012 16:07:36 +0000 (-0400) Subject: Fix: Relayd and consumerd socket leaks X-Git-Tag: v2.1.0-rc5~22 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=e09272cd700e3a0a59100cdf6c3ad2332341109c;hp=e09272cd700e3a0a59100cdf6c3ad2332341109c Fix: Relayd and consumerd socket leaks Using the set_consumer_uri call, the connection is established between the session daemon and the relayd then sent to the relayd. However, when start_tracing is initiated, the sessiond creates, if needed, the relayd sockets and send them to the consumer. A validation was missing in one of the function call to validate if the sockets were already sent to the consumer. Note that using lttng_create_session with a remote URL, the sockets are created only when tracing starts thus not having this issue. This fixes leaks on the relayd and consumerd when destroying a session. Fixes #374 #382 Signed-off-by: David Goulet ---