Fix: ustctl: return -EPIPE to sessiond if connection is closed
[lttng-ust.git] / liblttng-ust / lttng-events.c
index 46ba11d5f12e74935871efcb847c1160d020da96..ec5d78f50527056f1f50adb2e2d4df40da47b630 100644 (file)
@@ -237,8 +237,10 @@ int lttng_session_enable(struct lttng_session *session)
                        fields,
                        &chan->id,
                        &chan->header_type);
-               if (ret)
+               if (ret) {
+                       DBG("Error (%d) registering channel to sessiond", ret);
                        return ret;
+               }
        }
 
        CMM_ACCESS_ONCE(session->active) = 1;
@@ -384,6 +386,7 @@ int lttng_event_create(const struct lttng_event_desc *desc,
                        uri,
                        &event->id);
                if (ret < 0) {
+                       DBG("Error (%d) registering event to sessiond", ret);
                        goto sessiond_register_error;
                }
        }
This page took 0.026892 seconds and 4 git commands to generate.