Fix the BufferedIO monkeypatch to fully match the change to Ruby's trunk in r5908 (which became part of Ruby 1.8.6 after being backported from trunk in r9146).
Fix the BufferedIO monkeypatch to fully match the change to Ruby's trunk in r5908 (which became part of Ruby 1.8.6 after being backported from trunk in r9146).

This fixes an incompatibility with 1.8.6 2007-06-07 patchlevel 36 where you'd get "Errno::EINTR: Interrupted system call" exceptions in Socket#sysread for any non-faked request.

benhoskings/fakeweb,chrisk/fakeweb