zeromq/libzmq — pull request #286 by pieterh (2012-03-22 16:07:31+00:00)
Title: Fixed issue LIBZMQ-345 - race condition in ctx.socket/term allows segfault

* Ensures now that term and create_socket cannot conflict with each other. Keeps term open to allow multiple threads to term at the same time.
* Since the change affects shutdown, there may be other race conditions in this code still.