When doing safe writes, handle EAGAIN rather than raising an exception
authorSimon Marlow <simonmar@microsoft.com>
Tue, 15 May 2007 11:46:15 +0000 (11:46 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 15 May 2007 11:46:15 +0000 (11:46 +0000)
commit2a3d85b6fba60cdd77e0e3dee3d7d7db19b8f904
tree1784bc719f2bd45ee1993de48550c3791de3f872
parentc75ef63814e0ecd51d8b8a4b2d580f6ab426d9ca
When doing safe writes, handle EAGAIN rather than raising an exception
It might be that stdin was set to O_NONBLOCK by someone else, and we
should handle this case.  (this happens with GHCi, I'm not quite sure why)
GHC/Handle.hs