From 8b93b4f8eda32b26255300715620d622775ea8c7 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Mon, 22 May 2017 19:54:06 +0200 Subject: [PATCH] do not call nn_term() nn_term() will globally lock down the nanosmsg library. The nn_init() interface is no longer available to reset the global state. Subsequent unit tests after the first nn_term() call are failing. --- fairmq/nanomsg/FairMQTransportFactoryNN.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fairmq/nanomsg/FairMQTransportFactoryNN.cxx b/fairmq/nanomsg/FairMQTransportFactoryNN.cxx index 0472a303..e5c38c50 100644 --- a/fairmq/nanomsg/FairMQTransportFactoryNN.cxx +++ b/fairmq/nanomsg/FairMQTransportFactoryNN.cxx @@ -68,7 +68,8 @@ FairMQPollerPtr FairMQTransportFactoryNN::CreatePoller(const FairMQSocket& cmdSo void FairMQTransportFactoryNN::Shutdown() { - nn_term(); + // nn_term(); + // see https://www.freelists.org/post/nanomsg/Getting-rid-of-nn-init-and-nn-term,8 } void FairMQTransportFactoryNN::Terminate()