remove fcntl(O_NONBLOCK) on consumer notify fd
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 17 Mar 2010 03:55:02 +0000 (23:55 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 17 Mar 2010 03:55:02 +0000 (23:55 -0400)
We only read it one byte at a time, when poll as reported some data
available anyway.

libust/buffers.c

index 8cadeabf4207699473cbdadfc38c10da2c03d0f1..b7002dedf32c0c63353bd637f221a6f045de898a 100644 (file)
@@ -635,12 +635,6 @@ static int ust_buffers_init_buffer(struct ust_trace *trace,
        buf->data_ready_fd_read = fds[0];
        buf->data_ready_fd_write = fds[1];
 
-       /* FIXME: do we actually need this? */
-       result = fcntl(fds[0], F_SETFL, O_NONBLOCK);
-       if(result == -1) {
-               PERROR("fcntl");
-       }
-
 //ust//        buf->commit_seq = malloc(sizeof(buf->commit_seq) * n_subbufs);
 //ust//        if(!ltt_buf->commit_seq) {
 //ust//                return -1;
This page took 0.026594 seconds and 4 git commands to generate.