[zeromq-dev] How to handle EINTR especially when using High-Level APIs as CZMQ

Mark Botner mbotner at gmail.com
Sun Mar 29 06:03:20 CEST 2020


Using a dedicated signal handling thread calling sigwait() might not be
perfect, but I can attest that it works pretty well for most cases and that
I've been using this technique on Linux for several years now.
Good luck,

Mark

On Wed, Mar 25, 2020 at 1:13 AM Franz Hollerer <f.hollerer at gmx.net> wrote:

> After concerning myself more with this topic I think Marc's approach is
> the best a user of ZeroMQ can do to minimize the risk of an interrupted
> system call.
>
> Thanks for this nice idea. If I have some time I will try to provide a
> PR to get it into the guide.
>
> Franz
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20200328/a434b853/attachment.htm>


More information about the zeromq-dev mailing list