From: Mathieu Desnoyers Date: Thu, 3 Sep 2015 02:59:20 +0000 (-0400) Subject: Data pending comment clarification in session daemon X-Git-Tag: v2.8.0-rc1~431 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=5e280d7780be0616d07b9523fc14ec48e2d3caad;hp=7591bab11eceedc6a0d1e02fd6f85592267a63b5 Data pending comment clarification in session daemon Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/consumer.c b/src/bin/lttng-sessiond/consumer.c index 41ad46d86..6eb84d6ae 100644 --- a/src/bin/lttng-sessiond/consumer.c +++ b/src/bin/lttng-sessiond/consumer.c @@ -1093,11 +1093,8 @@ error: } /* - * Ask the consumer if the data is ready to read (NOT pending) for the specific - * session id. - * - * This function has a different behavior with the consumer i.e. that it waits - * for a reply from the consumer if yes or no the data is pending. + * Ask the consumer if the data is pending for the specific session id. + * Returns 1 if data is pending, 0 otherwise, or < 0 on error. */ int consumer_is_data_pending(uint64_t session_id, struct consumer_output *consumer)