How to use the poll C function to watch named pipes in Linux?

后端 未结 2 1329
醉酒成梦
醉酒成梦 2021-01-04 07:12

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

2条回答
  •  滥情空心
    2021-01-04 07:58

    It will continue to set POLLHUP in revents.
    Also, see http://linux.die.net/man/3/poll for reference.

提交回复
热议问题