X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=blobdiff_plain;f=liblttng-ust%2Flttng-ust-abi.c;h=77bb90db02d24d42ccdf6c996a3d1c82e9266e70;hp=b5c305a951cc23e6a290401ce2b5c03b894e1d3c;hb=118c051e465a0bffe22bb5bc57943f54c4afdc86;hpb=867942fdcdf016a65df7165b4b8135801e2832c2 diff --git a/liblttng-ust/lttng-ust-abi.c b/liblttng-ust/lttng-ust-abi.c index b5c305a9..77bb90db 100644 --- a/liblttng-ust/lttng-ust-abi.c +++ b/liblttng-ust/lttng-ust-abi.c @@ -1107,6 +1107,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;