JuliaLang/julia — pull request #8571 by danluu (2014-10-03 17:06:53+00:00)
Title: Fix #8570 and add test

This fixes #8570 and adds a simple test. `make testall` fails but that's because [the build is already broken](https://travis-ci.org/JuliaLang/julia/builds/36974275). The newly added test passes, and it should fail by hanging without the patch.