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
浙公网安备 33010602011771号