Theano/Theano — pull request #1176 by abalkin (2013-01-23 20:21:24+00:00)
Title: Fixed a race condition.

Also fixes a file descriptor leak.