[zeromq-dev] zmq_term can not safely be re-entered with pgm transport

Toralf Wittner tw at dtex.org
Sat Jul 21 17:03:49 CEST 2012


According to the man page of zmq_term, it should be safe to re-enter
zmq_term if it previously returned with EINTR. This is actually not
true if used with OpenPGM. zmq_term invokes pgm_shutdown which is
reading and modifying the static variable pgm_ref_count and will
return FALSE on second invocation which makes zmq_term abort with
"Assertion failed: false (zmq.cpp:185)". This affects version 2.2 as
well as 3.2.

-- Toralf



More information about the zeromq-dev mailing list