Fix: don't wait for initial statedump when 0 session active
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Aug 2019 14:43:35 +0000 (10:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Aug 2019 16:13:46 +0000 (12:13 -0400)
commitc41cdc2abcd4cf7311dd0927fb47d1d507d5ccfc
treec6e3ca08071b21cfba653aa9f3d987d2e0ab7f1c
parent3f5339b0d6f76158b858ea4467a0f1a0ada9e65e
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>
liblttng-ust/lttng-ust-comm.c
This page took 0.024234 seconds and 4 git commands to generate.