1d928984a3
This recommits revision r44178, which was reverted in r44180, with changes to fix the issues with Process.stdin. It also adds a test for issue 22636, duplicate READ_CLOSED message. Changes from r44187 Test tests/standalone/io/issue_22636_test.dart added. Line "native.closedReadEventSent = true;" added to _RawSocket._writePipe() in runtime/bin/socket_patch.dart. BUG=http://dartbug.com/22636 BUG=http://dartbug.com/22637 R=sgjesse@google.com Review URL: https://codereview.chromium.org//980593002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44236 260f80e4-7a28-3924-810f-c04153c831b5