Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] [UST PATCH] Remove the close of the buffers data_ready_fd_* in ust_fork
@ 2011-02-22 23:57 Yannick Brosseau
  0 siblings, 0 replies; only message in thread
From: Yannick Brosseau @ 2011-02-22 23:57 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-22 23:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 23:57 [ltt-dev] [UST PATCH] Remove the close of the buffers data_ready_fd_* in ust_fork Yannick Brosseau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox