about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-01-26 18:55:39 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-01-26 18:55:39 +0530
commitef96037f7e95f344d34252fa70bb10109ad5b285 (patch)
treeddfa239afef7a03c390685419265955c7caa71e9 /src/libstd/sys/unix/stack_overflow.rs
parente9617dd0b8a68a5aefb810635ca083b4c4eaed16 (diff)
parentfee457d3af355f24ef321ea7250e968638f403c8 (diff)
downloadrust-ef96037f7e95f344d34252fa70bb10109ad5b285.tar.gz
rust-ef96037f7e95f344d34252fa70bb10109ad5b285.zip
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
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions