Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index 904462da68625905fb5293ad28aa269b4c11ab3f..f2023a6961e3f13b619fbeb92a761c8e1fd7998c 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <poll.h>
 #include <pthread.h>
@@ -774,7 +775,7 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
                 * Send status code to session daemon.
                 */
                ret = consumer_send_status_msg(sock, ret_code);
-               if (ret < 0) {
+               if (ret < 0 || ret_code != LTTCOMM_CONSUMERD_SUCCESS) {
                        /* Somehow, the session daemon is not responding anymore. */
                        goto end_nosignal;
                }
This page took 0.025756 seconds and 5 git commands to generate.