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

Claudio Carbone erupter at libero.it
Thu Aug 16 22:37:57 CEST 2012


I moved to checking zmq_error because I was getting the exact same behaviour with
Zerrno = zmq_poll(...);

So how exactly should I check for errors with polling?

Claudio


-----Original Message-----
From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of gonzalo diethelm
Sent: giovedì 16 agosto 2012 21:08
To: ZeroMQ development list
Cc: erupter at libero.it
Subject: Re: [zeromq-dev] Checking for errors on zmq_poll: is it correct?

A tiny nitpick: it is an ERROR to check errno (or zmq_error()) if the call did not return an error status.

--
Gonzalo Diethelm
DCV Chile





More information about the zeromq-dev mailing list