Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Fix some behavior without stdio handles #31177

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

alexcrichton
Copy link
Member

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

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @sfackler and/or @brson

@sfackler
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 25, 2016

📌 Commit f01bc14 has been approved by sfackler

@bors
Copy link
Contributor

bors commented Jan 25, 2016

⌛ Testing commit f01bc14 with merge ecdba74...

@bors
Copy link
Contributor

bors commented Jan 25, 2016

💔 Test failed - auto-win-gnu-32-opt

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 rust-lang#31167
@alexcrichton
Copy link
Member Author

@bors: r=sfackler fee457d

@Manishearth
Copy link
Member

@bors p=1 force

@bors
Copy link
Contributor

bors commented Jan 26, 2016

⌛ Testing commit fee457d with merge 44093dd...

Manishearth added a commit to Manishearth/rust that referenced this pull request Jan 26, 2016
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 rust-lang#31167
@bors
Copy link
Contributor

bors commented Jan 26, 2016

⛄ The build was interrupted to prioritize another pull request.

bors added a commit that referenced this pull request Jan 26, 2016
@bors bors merged commit fee457d into rust-lang:master Jan 26, 2016
@alexcrichton alexcrichton deleted the no-stdio branch January 26, 2016 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants