From d73b06ee279339fd46d9fd5856da205ddd1c24fd Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 16 Mar 2010 23:55:02 -0400 Subject: [PATCH] remove fcntl(O_NONBLOCK) on consumer notify fd We only read it one byte at a time, when poll as reported some data available anyway. --- libust/buffers.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libust/buffers.c b/libust/buffers.c index 8cadeabf..b7002ded 100644 --- a/libust/buffers.c +++ b/libust/buffers.c @@ -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; -- 2.34.1