node: ensure that streams2 won't `.end()` stdin
authorFedor Indutny <fedor@indutny.com>
Sat, 21 Mar 2015 23:19:04 +0000 (16:19 -0700)
committerFedor Indutny <fedor@indutny.com>
Sun, 22 Mar 2015 02:51:08 +0000 (19:51 -0700)
commit9ae1a612149c27d4ffc6e8e6561d4845ad786674
treec40e53159a170ac523e8295dcdbc2d26e418dfa6
parent999fbe9d96cbdff9cd69f0d23c6671dc0d7f3e9e
node: ensure that streams2 won't `.end()` stdin

Stdin is purely read-only stream. Although, `net.Socket` might be used
to create it if stdin is in fact a Pipe or TCP socket, the
`stream.Duplex` should not try to call `.end()` on it.

Fix: https://github.com/iojs/io.js/issues/1068
PR-URL: https://github.com/iojs/io.js/pull/1233
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
src/node.js