msg.u.channel.name, msg.u.channel.uid, msg.u.channel.gid,
msg.u.channel.relayd_id, msg.u.channel.output,
msg.u.channel.tracefile_size,
- msg.u.channel.tracefile_count);
+ msg.u.channel.tracefile_count, 0);
if (new_channel == NULL) {
lttng_consumer_send_error(ctx, LTTCOMM_CONSUMERD_OUTFD_ERROR);
goto end_nosignal;
}
/* 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;