~lttng/lttng-ust/lttng-ust

Viewing all changes in revision 2323.

  • Committer: Mathieu Desnoyers
  • Date: 2019-08-02 16:13:23 UTC
  • Revision ID: git-v1:04682184d7f67b02f73aa8f2581cfa2a67a81f74
Fix: don't wait for initial statedump when 0 session active

commit eb0e6022d5e2 "Fix: wait for initial statedump before proceeding
to the main program"

introduced a regression when an application interacts with a session
daemon which has 0 session active.

An application linked against lttng-ust started with
LTTNG_UST_REGISTER_TIMEOUT=-1 hangs forever.

Fix this by decrementing the semaphore if no statedump was requested
when the registration done command is received.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: