X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fkernel-consumer%2Fkernel-consumer.c;h=11830fc05a087f4f601a3156560ac5b7a6735365;hp=39b635dc51bacd9c97b97579cafd833731bfba13;hb=821fffb2f13c9d5178df306f3c87edbeaf881a22;hpb=63c861bd62870a344c1246855228562f3442171a diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 39b635dc5..11830fc05 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -174,7 +174,7 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, } /* If we received an error in add_channel, we need to report it. */ - if (ret != 0) { + if (ret < 0) { ret = consumer_send_status_msg(sock, ret); if (ret < 0) { goto error_fatal;