* Protect the lttng_fd_set. Nests within the ust_lock, and therefore
* within the libc dl lock. Therefore, we need to fixup the TLS before
* nesting into this lock.
* Protect the lttng_fd_set. Nests within the ust_lock, and therefore
* within the libc dl lock. Therefore, we need to fixup the TLS before
* nesting into this lock.
/*
* Track whether we are within lttng-ust or application, for close
* system call override by LD_PRELOAD library.
/*
* Track whether we are within lttng-ust or application, for close
* system call override by LD_PRELOAD library.
pthread_mutex_unlock(&ust_safe_guard_fd_mutex);
/*
* Ensure the compiler don't move the store before the close()
pthread_mutex_unlock(&ust_safe_guard_fd_mutex);
/*
* Ensure the compiler don't move the store before the close()