ZMQ publisher might hang if it sends a message during ctrl + c the reason is that when calling zmq_close and zmq_term from the same thread, zmq_close will wait for the message to be sent (but will return the control to the calling thread)
ZMQ publisher might hang if it sends a message during ctrl + c
the reason is that when calling zmq_close and zmq_term from the same
thread, zmq_close will wait for the message to be sent (but will return
the control to the calling thread)

and then zmq_ctx_destroy will hang forever

see:
https://lists.zeromq.org/pipermail/zeromq-dev/2013-September/022469.html

Signed-off-by: imarom <4fa0e965a175bd1cef6459ed7c388bf7ff953a09@cisco.com>

kisel/trex-core,dimagol/trex-core,dimagol/trex-core,kisel/trex-core,kisel/trex-core,dimagol/trex-core,kisel/trex-core,dimagol/trex-core,dimagol/trex-core,dimagol/trex-core,kisel/trex-core,kisel/trex-core