Fix: consumer recv command error path
[lttng-tools.git] / src / common / consumer.c
index 008bf8e54904d71158400216393f0fc6c5786e63..1c919003656be9b81e5c58e8d65f5f02ff57612a 100644 (file)
@@ -1776,8 +1776,12 @@ void *lttng_consumer_thread_receive_fds(void *data)
                        DBG("Received STOP command");
                        goto end;
                }
                        DBG("Received STOP command");
                        goto end;
                }
-               if (ret < 0) {
-                       ERR("Communication interrupted on command socket");
+               if (ret <= 0) {
+                       /*
+                        * This could simply be a session daemon quitting. Don't output
+                        * ERR() here.
+                        */
+                       DBG("Communication interrupted on command socket");
                        goto end;
                }
                if (consumer_quit) {
                        goto end;
                }
                if (consumer_quit) {
This page took 0.023474 seconds and 4 git commands to generate.