Move include/ust/ to include/lttng/
[lttng-ust.git] / libringbuffer / shm.c
index ae63b004fd50723cd9c73511049bb8d042928f59..fc7fbfb2c0642ca0c410ddae0c6cd1a45b5a792e 100644 (file)
@@ -16,7 +16,7 @@
 #include <stdio.h>
 #include <signal.h>
 #include <dirent.h>
-#include <ust/align.h>
+#include <lttng/align.h>
 
 struct shm_object_table *shm_object_table_create(size_t max_nb_obj)
 {
@@ -214,6 +214,8 @@ void shmp_object_destroy(struct shm_object *obj)
                assert(0);
        }
        for (i = 0; i < 2; i++) {
+               if (obj->wait_fd[i] < 0)
+                       continue;
                ret = close(obj->wait_fd[i]);
                if (ret) {
                        PERROR("close");
This page took 0.025019 seconds and 4 git commands to generate.