zeromq/pyzmq — pull request #222 by minrk (2012-06-16 04:29:25+00:00)
Title: Protect sockets from errors during gc in forked child

This simply prevents close/term from being called during gc in the forked process,
which would cause unavoidable asserts (mailbox.cpp:79) if fork is ever called
while there is a zmq socket in the process.

Actually trying to use the sockets/context after the fork will still produce the same error,
but there's no reason to protect people from themselves that much.