projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move include/ust/ to include/lttng/
[lttng-ust.git]
/
libringbuffer
/
shm.c
diff --git
a/libringbuffer/shm.c
b/libringbuffer/shm.c
index ae63b004fd50723cd9c73511049bb8d042928f59..fc7fbfb2c0642ca0c410ddae0c6cd1a45b5a792e 100644
(file)
--- a/
libringbuffer/shm.c
+++ b/
libringbuffer/shm.c
@@
-16,7
+16,7
@@
#include <stdio.h>
#include <signal.h>
#include <dirent.h>
#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)
{
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++) {
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");
ret = close(obj->wait_fd[i]);
if (ret) {
PERROR("close");
This page took
0.025703 seconds
and
4
git commands to generate.