X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Fust-consumer.c;fp=lttng-sessiond%2Fust-consumer.c;h=46558417ecc2c47b295a7613ae35c7da7c9412d0;hp=df569368ae04f2e8faafb1b9ebbfde069fc618aa;hb=7ad0a0cb283d4004cf9274df8eec4e3530864fc7;hpb=464dd62d5617322366e321877b440951e00a0152 diff --git a/lttng-sessiond/ust-consumer.c b/lttng-sessiond/ust-consumer.c index df569368a..46558417e 100644 --- a/lttng-sessiond/ust-consumer.c +++ b/lttng-sessiond/ust-consumer.c @@ -46,8 +46,11 @@ static int send_channel_streams(int sock, lum.cmd_type = LTTNG_CONSUMER_ADD_CHANNEL; /* - * We need to keep shm_fd open to make sure this key stays unique within - * the session daemon. + * We need to keep shm_fd open while we transfer the stream file + * descriptors to make sure this key stays unique within the + * session daemon. We can free the channel shm_fd without + * problem after we finished sending stream fds for that + * channel. */ lum.u.channel.channel_key = uchan->obj->shm_fd; lum.u.channel.max_sb_size = uchan->attr.subbuf_size;