Skip to content

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Nov 6, 2023

We shouldn't need to use addclose on the file descriptors we're closing ourselves explicitly.

We shouldn't need to use addclose on the file descriptors we're closing ourselves explicitly.
@neonichu neonichu self-assigned this Nov 6, 2023
@neonichu
Copy link
Contributor Author

neonichu commented Nov 6, 2023

@swift-ci please test

@tomerd
Copy link
Contributor

tomerd commented Nov 6, 2023

what is the difference between stderr and stdout in this context?

I see it now

@neonichu
Copy link
Contributor Author

neonichu commented Nov 6, 2023

@swift-ci please test windows

2 similar comments
@neonichu
Copy link
Contributor Author

neonichu commented Nov 6, 2023

@swift-ci please test windows

@shahmishal
Copy link
Member

@swift-ci please test windows

@shahmishal
Copy link
Member

This should fix the windows test issue - swiftlang/swift#69689

@shahmishal shahmishal merged commit cf8a8a0 into swiftlang:main Nov 7, 2023
@shahmishal
Copy link
Member

Merged to unblock CI bots

@neonichu neonichu deleted the remove-redundant-addclose branch November 7, 2023 16:09
grynspan added a commit that referenced this pull request Nov 7, 2023
(With apologies to @neonichu.)

The previous commit closes the wrong file descriptor for `stdin`, which should close the duplicated _read_ descriptor (whereas `stdout` and `stderr` duplicate their _write_ descriptors.) This PR fixes that.
grynspan added a commit that referenced this pull request Nov 8, 2023
tomerd pushed a commit that referenced this pull request Nov 8, 2023
grynspan pushed a commit that referenced this pull request Nov 9, 2023
We shouldn't need to use addclose on the file descriptors we're closing ourselves explicitly.
grynspan added a commit that referenced this pull request Nov 9, 2023
(With apologies to @neonichu.)

The previous commit closes the wrong file descriptor for `stdin`, which should close the duplicated _read_ descriptor (whereas `stdout` and `stderr` duplicate their _write_ descriptors.) This PR fixes that.
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.

5 participants