[zeromq-dev] Is the zmq_strerror method threadsafe?

Pieter Hintjens ph at imatix.com
Mon Sep 28 19:11:08 CEST 2015


It is not threadsafe by definition. However if this is something you
need, feel free to change it to use strerror_r and fix the man page.
We'll have to check how this works on other platforms.

On Mon, Sep 28, 2015 at 6:43 PM, Michael Devereaux
<Michael.Devereaux at quantum.com> wrote:
> Do you consider the method zmq_strerror to be threadsafe under ZMQ 3 and ZMQ
> 4?
>
>
>
> Details for my question:
>
> The zmq documentation does not state that zmq_strerror is threadsafe.
>
> The Zmq codebase for both Zmq 3 and Zmq 4 calls strerror, not strerror_r.
>
> The Linux man page for strerror indicates that it is not guaranteed to be
> threadsafe, whereas strerror_r is guaranteed threadsafe.  But often, the
> actual code implementation for strerror *is* threadsafe.
>
>
>
> Note: Our current sw configuration requires one of RedHat Linux 5,6,7 and
> SuSe Linux 11, and ZeroMQ 3.2.3.7
>
>
>
> Thx,
>
> Michael Devereaux
>
>
>
> ________________________________
> The information contained in this transmission may be confidential. Any
> disclosure, copying, or further distribution of confidential information is
> not permitted unless such privilege is explicitly granted in writing by
> Quantum. Quantum reserves the right to have electronic communications,
> including email and attachments, sent across its networks filtered through
> anti virus and spam software programs and retain such messages in order to
> comply with applicable data security and retention requirements. Quantum is
> not responsible for the proper and complete transmission of the substance of
> this communication or for any delay in its receipt.
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list