X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=46da97e56019aa881d9092e7abb326f4be592bcb;hb=b7d17fdfe9a0f52c272b4d2640a8e9b4b396ac1a;hp=3892cb4ada8b613b2396866e033bf16311abf7a4;hpb=6a381a6ef90d2068731064cc42d5f6eeb6483c3f;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index 3892cb4ad..46da97e56 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -793,6 +793,7 @@ int utils_rotate_stream_file(char *path_name, char *file_name, uint64_t size, PERROR("Closing tracefile"); goto error; } + *stream_fd = -1; if (count > 0) { /*