Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix a bug in Select() on *nix. - #4652

Merged
pgavlin merged 1 commit into
dotnet:masterfrom
pgavlin:gh4631
Nov 25, 2015
Merged

pgavlin merged 1 commit into
dotnet:masterfrom
pgavlin:gh4631

Conversation

@pgavlin

@pgavlin pgavlin commented Nov 24, 2015

Copy link
Copy Markdown
Contributor

The translations between PAL <-> platform file descriptor sets were inverted,
causing incorrect behavior in the case that a Select() completed with any
signalled file descriptors.

The translations between PAL <-> platform file descriptor sets were inverted,
causing incorrect behavior in the case that a Select() completed with any
signalled file descriptors.
@pgavlin

pgavlin commented Nov 24, 2015

Copy link
Copy Markdown
Contributor Author

@stephentoub @CIPop PTAL

@pgavlin

pgavlin commented Nov 24, 2015

Copy link
Copy Markdown
Contributor Author

This fixes #4631.

@pgavlin

pgavlin commented Nov 24, 2015

Copy link
Copy Markdown
Contributor Author

Ping. I'd like to get this merged as soon as possible.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remind me why we have this whole else section? Is it purely a performance thing to be able to use memcpy, and we're sure that's valid?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's just a performance thing. I am certain that the memcpy is valid: both the source and target are bit vectors with the same size, polarity, and indexing semantics.

@stephentoub

Copy link
Copy Markdown
Member

Two nit questions, but LGTM. Thanks for the fix.

@CIPop

CIPop commented Nov 25, 2015

Copy link
Copy Markdown

LGTM (Looked mainly at the tests.)

pgavlin added a commit that referenced this pull request Nov 25, 2015
Fix a bug in Select() on *nix.
@pgavlin
pgavlin merged commit 339dcf2 into dotnet:master Nov 25, 2015
@pgavlin
pgavlin deleted the gh4631 branch November 25, 2015 00:58
@karelz karelz added the os-linux Linux OS (any supported distro) label Mar 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net os-linux Linux OS (any supported distro)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants