SiteSupport/gevent — pull request #159 by vitaly-krugl (2012-09-15 20:57:46+00:00)
Title: Fixes for issue #146 and issue #147

Issue #146: FileObject incorrectly reports end of file when file descriptor is closed prematurely.

Issue #147: FileObject(stdin) causes os.write on stdout to fail with OSError: [Errno 35] Resource temporarily unavailable.

NOTE: the reason that fixes for both issues are being submitted in a single pull request is because both were addressed by the re-write of the same code section.