Add wakeup on subbuffer delivery
[lttng-ust.git] / libringbuffer / shm.c
index 8f158e2f0507feeb8d05e000f08241a0e356b9e9..6a77af6462a61d93a3c5c1bfb8fff214f546de62 100644 (file)
@@ -49,6 +49,12 @@ struct shm_object *shm_object_table_append(struct shm_object_table *table,
                        goto error_fcntl;
                }
        }
+       /* The write end of the pipe needs to be non-blocking */
+       ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
+       if (ret < 0) {
+               PERROR("fcntl");
+               goto error_fcntl;
+       }
        *obj->wait_fd = *waitfd;
 
        /* shm_fd: create shm */
This page took 0.022878 seconds and 4 git commands to generate.