[zeromq-dev] Checking for errors on zmq_poll: is it correct?

Chernyshev Vyacheslav astellar at ro.ru
Thu Aug 16 22:47:52 CEST 2012


17.08.12, 0:37, Claudio Carbone wrote:
> So how exactly should I check for errors with polling?
You should check return value of zmq_poll, not errno. zmq_poll will 
return -1 if any error has happened. It is valid to check errno only 
when -1 was returned from zmq_poll.



More information about the zeromq-dev mailing list