]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #31177 - alexcrichton:no-stdio, r=sfackler
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 26 Jan 2016 13:25:39 +0000 (18:55 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Tue, 26 Jan 2016 13:25:39 +0000 (18:55 +0530)
commitef96037f7e95f344d34252fa70bb10109ad5b285
treeddfa239afef7a03c390685419265955c7caa71e9
parente9617dd0b8a68a5aefb810635ca083b4c4eaed16
parentfee457d3af355f24ef321ea7250e968638f403c8
Rollup merge of #31177 - alexcrichton:no-stdio, r=sfackler

On all platforms, reading from stdin where the actual stdin isn't present should
return 0 bytes as having been read rather than the entire buffer.

On Windows, handle the case where we're inheriting stdio handles but one of them
isn't present. Currently the behavior is to fail returning an I/O error but
instead this commit corrects it to detecting this situation and propagating the
non-set handle.

Closes #31167