From: David Goulet Date: Thu, 13 Feb 2014 15:42:58 +0000 (-0500) Subject: Fix: handle snapshot ENODATA in live timer X-Git-Tag: v2.4.0-rc5~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=12c6de078bfb3dcdc6a12dbd3dcf581ba284c498;p=lttng-tools.git Fix: handle snapshot ENODATA in live timer Signed-off-by: David Goulet --- diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index b867a35bf..dc6f2f7fc 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -154,8 +154,8 @@ static int check_kernel_stream(struct lttng_consumer_stream *stream) } ret = kernctl_snapshot(stream->wait_fd); if (ret < 0) { - if (errno != EAGAIN) { - ERR("Taking kernel snapshot"); + if (errno != EAGAIN && errno != ENODATA) { + PERROR("live timer kernel snapshot"); ret = -1; goto error_unlock; }