This makes the getLTTngAgent() call wait until we receive that message
so that in the meantime the session daemon can enable events.
Fixes #692
Signed-off-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/** Enable logger by name. */
CMD_ENABLE(2),
/** Disable logger by name. */
- CMD_DISABLE(3);
+ CMD_DISABLE(3),
+ /** Registration done */
+ CMD_REG_DONE(4);
+
private int code;
private lttng_jul_command(int c) {
* UST application.
*/
registerToSessiond();
- this.registerSem.release();
setupEventTimer();
}
switch (headerCmd.cmd) {
+ case CMD_REG_DONE:
+ {
+ /*
+ * Release semaphore so meaning registration is done and we
+ * can proceed to continue tracing.
+ */
+ this.registerSem.release();
+ break;
+ }
case CMD_LIST:
{
LTTngSessiondCmd2_4.sessiond_list_logger listLoggerCmd =