diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-01-26 18:55:39 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-01-26 18:55:39 +0530 |
| commit | ef96037f7e95f344d34252fa70bb10109ad5b285 (patch) | |
| tree | ddfa239afef7a03c390685419265955c7caa71e9 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | e9617dd0b8a68a5aefb810635ca083b4c4eaed16 (diff) | |
| parent | fee457d3af355f24ef321ea7250e968638f403c8 (diff) | |
| download | rust-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
