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

Tests: disable the LogHandle tests on Windows #634

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

compnerd
Copy link
Member

FileHandle transacts in HANDLEs on Windows rather than file descriptors. This makes it impossible to replace the end point of the pipe after it has been created as the conversion from a HANDLE to a file descriptor transfers ownership and as such the FileHandle does not work with file descriptors at all. Replicating that behaviour here would detach the FileHandle associated with the Pipe and thus cannot be done inline.

@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@d-ronnqvist d-ronnqvist left a comment

Choose a reason for hiding this comment

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

LGTM

`FileHandle` transacts in `HANDLE`s on Windows rather than file
descriptors.  This makes it impossible to replace the end point of the
pipe after it has been created as the conversion from a HANDLE to a file
descriptor transfers ownership and as such the FileHandle does not work
with file descriptors at all.  Replicating that behaviour here would
detach the `FileHandle` associated with the `Pipe` and thus cannot be
done inline.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 4fb746b into swiftlang:main Jun 22, 2023
@compnerd compnerd deleted the detach branch June 22, 2023 15:32
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.

2 participants