From 3ad5f707e8784c29c14bcf46b4b2ea9753679ad2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 12 Jan 2012 14:07:56 -0500 Subject: [PATCH] Add a comment about which wait fd is closed early by UST. Signed-off-by: Mathieu Desnoyers --- liblttng-ust/lttng-ust-comm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 516e39d2..798c10a3 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -340,7 +340,9 @@ end: } /* * We still have the memory map reference, and the fds have been - * sent to the sessiond. We can therefore close those fds. + * sent to the sessiond. We can therefore close those fds. Note + * that we keep the write side of the wait_fd open, but close + * the read side. */ if (lur.ret_code == USTCOMM_OK) { switch (lum->cmd) { -- 2.34.1