X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=1e52ae0aa073640a34f8b035376bb6b5119d5660;hb=b5b0c181b9f47edd4be6fd1f70835f232c0d56fd;hp=901ddb036771d77ff7ab1c2f723c98db7f895bbb;hpb=e9c45a264894ea689fd9f018a0e83571f4ce095d;p=lttng-tools.git diff --git a/src/common/utils.c b/src/common/utils.c index 901ddb036..1e52ae0aa 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -854,6 +854,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) { /*