Fix: Relayd and consumerd socket leaks
authorDavid Goulet <dgoulet@efficios.com>
Fri, 19 Oct 2012 16:07:36 +0000 (12:07 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 19 Oct 2012 16:07:36 +0000 (12:07 -0400)
commite09272cd700e3a0a59100cdf6c3ad2332341109c
tree60ba95726b5e64445a83156f37918b52933769a8
parentb64403e3e8962444b688fa369338f47c86003b21
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 <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c
This page took 0.025738 seconds and 4 git commands to generate.