From: Pierre-Marc Fournier Date: Wed, 17 Mar 2010 03:55:02 +0000 (-0400) Subject: remove fcntl(O_NONBLOCK) on consumer notify fd X-Git-Tag: v0.4~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d73b06ee279339fd46d9fd5856da205ddd1c24fd;p=ust.git 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. --- diff --git a/libust/buffers.c b/libust/buffers.c index 8cadeab..b7002de 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;