Fix register consumer fd test on registration
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 13 Dec 2011 20:50:16 +0000 (15:50 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 13 Dec 2011 20:50:16 +0000 (15:50 -0500)
commit48c4f28cde63c862229c41179e6fac606cdf41d4
treec0ab984dcb45f80dd80f0a1c98822c96e442d378
parentb9ef1c833d0a0dbb457ca920a15c0f54f3585374
Fix register consumer fd test on registration

When a kernel session is created, a consumer is immediately spawned. So,
using two sessions, the second one was not able to register it's own
consumer since the consumer_fd is set because there is a running kernel
consumer from the first created session. The flag consumer_fds_sent is
now used to test if the kernel consumer is already consuming buffers.

Reported-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/main.c
This page took 0.029408 seconds and 4 git commands to generate.