[ltt-dev] [UST PATCH] Remove the close of the buffers data_ready_fd_* in ust_fork

Yannick Brosseau yannick.brosseau at gmail.com
Tue Feb 22 18:57:36 EST 2011


We remove those close, since they are done in the call to
ltt_trace_destroy()
The double close is making the test to fail, since they trigger
unwanted warnings

Signed-off-by: Yannick Brosseau <yannick.brosseau at gmail.com>
---
 libust/tracectl.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/libust/tracectl.c b/libust/tracectl.c
index 1bd7229..8e2a249 100644
--- a/libust/tracectl.c
+++ b/libust/tracectl.c
@@ -1589,14 +1589,6 @@ static void ust_fork(void)
 	/* Delete all blocked consumers */
 	cds_list_for_each_entry_safe(buf, buf_tmp, &open_buffers_list,
 				 open_buffers_list) {
-		result = close(buf->data_ready_fd_read);
-		if (result == -1) {
-			PERROR("close");
-		}
-		result = close(buf->data_ready_fd_write);
-		if (result == -1) {
-			PERROR("close");
-		}
 		cds_list_del(&buf->open_buffers_list);
 	}
 
-- 
1.7.2.3





More information about the lttng-dev mailing list