X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-abi.c;h=1bf7a5aeab03a84b09c05dda0fdfe9ab8b7ead97;hb=fd46f5c79a6a7178e35ce4f8ea21caa30da45cc4;hp=daf0d5e4caa0185652605e9a0496c2ad0fb2f0b3;hpb=24e6ac9b18904de64d31dc79f53b1c8296541c8a;p=lttng-ust.git diff --git a/liblttng-ust/lttng-ust-abi.c b/liblttng-ust/lttng-ust-abi.c index daf0d5e4..1bf7a5ae 100644 --- a/liblttng-ust/lttng-ust-abi.c +++ b/liblttng-ust/lttng-ust-abi.c @@ -772,6 +772,9 @@ int lttng_abi_map_stream(int channel_objd, struct lttng_ust_stream *info, info->stream_nr, info->len); if (ret) goto error_add_stream; + /* Take ownership of shm_fd and wakeup_fd. */ + uargs->stream.shm_fd = -1; + uargs->stream.wakeup_fd = -1; return 0;