X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=libringbuffer%2Fshm.c;h=461befb99db5ed45cde5dcdcfecb860df06003b3;hp=44a830af20446142f8e21177b5187e8dfd6d4af0;hb=6daf0c26e948e0f2270c283a6b311fba9591843d;hpb=4f74bc5ef1bff1198cf47bd823cc5dc2e8fd9649 diff --git a/libringbuffer/shm.c b/libringbuffer/shm.c index 44a830af..461befb9 100644 --- a/libringbuffer/shm.c +++ b/libringbuffer/shm.c @@ -329,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; - 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) {