projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: ust-tracepoint-event.h: extract `__num_fields` in a variable
[lttng-ust.git]
/
libringbuffer
/
shm.c
diff --git
a/libringbuffer/shm.c
b/libringbuffer/shm.c
index 909991ed27c6f1ada4a04426e396d232d126df8e..461befb99db5ed45cde5dcdcfecb860df06003b3 100644
(file)
--- a/
libringbuffer/shm.c
+++ b/
libringbuffer/shm.c
@@
-34,6
+34,7
@@
#include <lttng/align.h>
#include <limits.h>
#include <stdbool.h>
#include <lttng/align.h>
#include <limits.h>
#include <stdbool.h>
+#include <stdint.h>
#ifdef HAVE_LIBNUMA
#include <numa.h>
#include <numaif.h>
#ifdef HAVE_LIBNUMA
#include <numa.h>
#include <numaif.h>
@@
-328,11
+329,6
@@
struct shm_object *shm_object_table_append_shm(struct shm_object_table *table,
obj->shm_fd = shm_fd;
obj->shm_fd_ownership = 1;
obj->shm_fd = shm_fd;
obj->shm_fd_ownership = 1;
- ret = fcntl(obj->wait_fd[1], F_SETFD, FD_CLOEXEC);
- if (ret < 0) {
- PERROR("fcntl");
- goto error_fcntl;
- }
/* The write end of the pipe needs to be non-blocking */
ret = fcntl(obj->wait_fd[1], F_SETFL, O_NONBLOCK);
if (ret < 0) {
/* The write end of the pipe needs to be non-blocking */
ret = fcntl(obj->wait_fd[1], F_SETFL, O_NONBLOCK);
if (ret < 0) {
This page took
0.023712 seconds
and
4
git commands to generate.