Fix: put session list lock around the app registration
authorDavid Goulet <dgoulet@efficios.com>
Mon, 18 Feb 2013 21:05:58 +0000 (16:05 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 18 Feb 2013 21:05:58 +0000 (16:05 -0500)
commitb325dc70f0a88cbe23e4f55517d87dec382a806f
tree752063a29fd0ce63808e888e5292bbb8c27f33d9
parent4db7b5a53cf49b925f14912714a9a84b4986b18c
Fix: put session list lock around the app registration

A successful call from ust_app_register makes the application visible to
the tracing registry on the client side so by moving this lock at the
start of the registration process until the end, we are certain that the
application does not receive an out of order message during
registration.

It basically protects the application registration from tracing command
such as enable-event.

This has been fixed in the master branch by an other commit during the
2.2 development phase.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/main.c
This page took 0.024869 seconds and 4 git commands to generate.