Fix: consumer recv command error path
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index 3c9687306dc2aa2e904ef35f9954bdcc37e1d436..0dfaa16e7620ec0480a833ef6acce6921e77ec87 100644 (file)
@@ -334,7 +334,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;
 }
 
 /*
This page took 0.024411 seconds and 4 git commands to generate.