Fix: race with index file creation
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 14 Feb 2014 19:25:26 +0000 (14:25 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 14 Feb 2014 21:54:15 +0000 (16:54 -0500)
commite6188a59e7fe1d6b6d0ffecae463762626c07f4d
tree4ac3fc43b60bfe20c0c06106d2d894181aff9dd1
parenta3a5e097521d6d223ff3e160008ccae411e5571f
Fix: race with index file creation

Only the data thread should create the index file since it is
responsible of filling the FD field of the index struct in memory.
When the control thread is ready to write the index, the FD is already
set.

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