projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update loglevel ABI: only loglevel value/enum is known by UST
[lttng-ust.git]
/
libringbuffer
/
shm.c
diff --git
a/libringbuffer/shm.c
b/libringbuffer/shm.c
index 781295beb718c69057fb9ba54e89916fba5ad00c..69e4b1a765eb1d9dea37b9cafb6c06bbf8f4e8ad 100644
(file)
--- a/
libringbuffer/shm.c
+++ b/
libringbuffer/shm.c
@@
-17,6
+17,7
@@
#include <signal.h>
#include <dirent.h>
#include <lttng/align.h>
#include <signal.h>
#include <dirent.h>
#include <lttng/align.h>
+#include <helper.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)
{
@@
-210,10
+211,12
@@
void shmp_object_destroy(struct shm_object *obj)
assert(0);
}
}
assert(0);
}
}
- ret = close(obj->shm_fd);
- if (ret) {
- PERROR("close");
- assert(0);
+ if (obj->shm_fd >= 0) {
+ ret = close(obj->shm_fd);
+ if (ret) {
+ PERROR("close");
+ assert(0);
+ }
}
for (i = 0; i < 2; i++) {
if (obj->wait_fd[i] < 0)
}
for (i = 0; i < 2; i++) {
if (obj->wait_fd[i] < 0)
This page took
0.024465 seconds
and
4
git commands to generate.