On Tue, 2016-04-19 at 09:37 -0700, Adel Boutros wrote:
> ...
> Checking the man of poll, a positive value of revents indicated there
> are
> events to read on the pipe whereas a 0 value indicates nothing to
> read.

This is not exactly correct. revents is a set of flag bits:

If it is non zero then it tells you that something is interesting about
the fd the pollfd refers to.

This can be readable - POLLIN; writeable - POLLOUT; errored - POLLERR;
other end closed - POLLHUP; illegal fd - POLLNVAL. As these are flags
the actual value could be some combination of them too.

It might be useful to tell us what the actual flags value you are
seeing on revents actually is.

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to