阅读背景:

如何使用poll C函数在Linux中监视命名管道?

来源:互联网 

I am trying to write a program where i am supposed to watch the ends of some named pipes using poll function. I have a for loop to check every pipe whenever poll returns >0 and i know that when a pipe gets closed from the procedure at the other end, i will get POLLHUP or POLLIN | POLLHUP in the revents field of the pollfd struct.I am trying to write a program where i am suppo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: