Fix: consumer recv command error path
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 47c0d460ffb60cc612d9806325602c6eac459023..935f6f31139e4e095219e1bb2e9c59d420718572 100644 (file)
@@ -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)
This page took 0.023059 seconds and 4 git commands to generate.