On Wed, Sep 26, 2012 at 5:46 PM, Tom Wilberding <t...@wilberding.com> wrote:
>> * Blocking calls now return EINTR if interrupted by the delivery of a
>>   signal; this also means that language bindings which previously had
>>   problems with handling SIGINT/^C should now work correctly.
>
> What is the best practice for handling this in C++? The zmq.hpp wrapper
> is throwing without any additional info when zmq_recv() returns -1 and
> errno is EINTR, so should my app be catching this exception? And if so,
> shouldn't information pertaining to the root cause of the interrupt be
> passed along?

It's throwing if it *isn't* EINTR - catch it and use errnum or what()
to see what the underlying issue is.

Ian
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to