I have read a couple good posts about how to clean up zmq when exitting an
application to prevent hanging.  For instance:
http://zguide.zeromq.org/page:all#Making-a-Clean-Exit
and
http://zeromq.org/whitepapers:0mq-termination

One thing I am not sure of though: why do we need to call zmq_term at all
if we are exiting an application? Won't the OS just release all the
resources automatically when the process finishes?  I can understand
closing sockets during the execution of the application to free resources,
but why do we need to call zmq_term before the application exits?

Thanks,
Matt
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to