michielbuddingh + poll 1
codeblog » using select on a fifo
november 2009 by michielbuddingh
" ... When dealing with sockets, the above loop is sane — EOF means the other end hung up and you’ll never get more data from the file descriptor. In the case of a FIFO, however, “0 length read” means there are no more FIFO writers — but more could attach later and continue feeding in data! The problem with this is that select misbehaves and marks the file descriptor as “EOF” forever. Only the initial select() call blocks until there is something to read — once it hits EOF, select will always immediately return, defeating the purpose of select() ... "
asynchronous
select
poll
fifo
november 2009 by michielbuddingh