fifo 上使用 select -- 转
摘要:
http://www.outflux.net/blog/archives/2008/03/09/using-select-on-a-fifo/The right way to handle on-going input from file descriptors is to use select(). All readable events are flagged (one such event is “end of file”, which is indicated by a 0-sized read()). For example, if we’re reading from file d 阅读全文
posted @ 2013-11-21 22:40 沉沉-_- 阅读(1059) 评论(0) 推荐(0) 编辑