X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fust-consumer%2Fust-consumer.c;h=935f6f31139e4e095219e1bb2e9c59d420718572;hb=3fa5d621da48eaeedaa1bc49fcf093d1c9b0d196;hp=47c0d460ffb60cc612d9806325602c6eac459023;hpb=1d586c7f93f26f4f29d308835c738b06834d6a70;p=lttng-tools.git diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index 47c0d460f..935f6f311 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -282,7 +282,12 @@ end: ret = write(ctx->consumer_poll_pipe[1], "", 1); } while (ret == -1UL && errno == EINTR); end_nosignal: - return 0; + + /* + * Return 1 to indicate success since the 0 value can be a socket shutdown + * during the recv() or send() call. + */ + return 1; } int lttng_ustconsumer_allocate_channel(struct lttng_consumer_channel *chan)