Fix: bad file descriptors on close after rotation error
[lttng-tools.git] / src / common / utils.c
index 3892cb4ada8b613b2396866e033bf16311abf7a4..46da97e56019aa881d9092e7abb326f4be592bcb 100644 (file)
@@ -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) {
                /*
This page took 0.029923 seconds and 4 git commands to generate.