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

Fallback to reading one-byte-at-a-time if select.select fails #22

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

claudiubelu
Copy link
Contributor

select.select does not work on file descriptors on Windows, causing subunit to fail.

Closes-Bug: #1668233

@freeekanayaka
Copy link
Member

This makes select.select() silently swallow possibly valid errors on any platform, including Linux. Could we instead check if the platform is windows and not even try to invoke select.select in that case?

@claudiubelu
Copy link
Contributor Author

Sure.

select.select does not work on file descriptors on Windows, causing subunit to fail.

Closes-Bug: #1668233
@claudiubelu
Copy link
Contributor Author

Hello, I've updated the PR.

@freeekanayaka
Copy link
Member

It'd be nice to have a unit test, but I understand it's not going to be particularly meaningful (and Travis CI doesn't support targeting Windows). So, LGTM.

@freeekanayaka freeekanayaka merged commit 7149380 into testing-cabal:master Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants