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:32:56 +0000 (16:32 -0500)
commit1d6448a074accdc6cb32e2f724f9768b006a6d67
tree14eec81803e50a525d62036113526a07ef8edf93
parent56611b069e7d0a64148cd990f88b4090298a9a0f
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.025172 seconds and 4 git commands to generate.