X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fust-consumer%2Fust-consumer.c;h=cc77739ce301c0954c59d2a7437126e5829061f9;hb=a578f62ffe6b2f2dbbdf804bc6e07ec8b38f02e6;hp=3d3a30dcd9e2e41d47b7c8d2bc7a92edbce57b35;hpb=c1fcc06acaf11e0aa324aa9c26870d6a0f457728;p=lttng-tools.git diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 3d3a30dcd..cc77739ce 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -1174,7 +1174,7 @@ static int snapshot_channel(uint64_t key, char *path, uint64_t relayd_id, produced_pos, nb_packets_per_stream, stream->max_sb_size); - while (consumed_pos < produced_pos) { + while ((long) (consumed_pos - produced_pos) < 0) { ssize_t read_len; unsigned long len, padded_len;