* 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.
int fd_to_close[STDERR_FILENO + 1];
int fd_to_close_count = 0;
int dup_cmd = F_DUPFD; /* Default command */
int fd_to_close[STDERR_FILENO + 1];
int fd_to_close_count = 0;
int dup_cmd = F_DUPFD; /* Default command */
ret = close(fd_to_close[i]);
if (ret) {
PERROR("close on temporary fd: %d.", fd_to_close[i]);
ret = close(fd_to_close[i]);
if (ret) {
PERROR("close on temporary fd: %d.", fd_to_close[i]);