Fix: bad file descriptors on close after rotation error
[lttng-tools.git] / src / common / utils.c
index 217d8c65d070a22ac3a0265cf63fbba1dc0a0e3f..2473ca39ef24b755fa6054ea4c1eb9abf2c9a2eb 100644 (file)
@@ -836,6 +836,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.022881 seconds and 4 git commands to generate.