[zeromq-dev] Why do we need to call zmq_term on application exit?

Matthew Darnall dnallicus at gmail.com
Tue Feb 18 02:48:17 CET 2014

I have read a couple good posts about how to clean up zmq when exitting an
application to prevent hanging.  For instance:

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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140217/209e715f/attachment.htm>

More information about the zeromq-dev mailing list