properly. This fixes the random hangs that we were seeing this morning on Linux that were a result of fixing the thread deadlock yesterday. (worked great on my OS X box, which uses select() instead of poll()). This commit was SVN r6730.