Skip to content

[5.0] Combined PR: SR-9033 handle EPOLLHUP #478 #482

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

Merged
merged 2 commits into from
May 14, 2019

Conversation

weissi
Copy link
Contributor

@weissi weissi commented May 14, 2019

this is

git cherry-pick -x 33c5d81 ffc7133

which backports #478 the fix for https://bugs.swift.org/browse/SR-9033 . CC @millenomi, this should make corelibs-foundation and the tests more stable.

weissi and others added 2 commits May 14, 2019 11:28
(cherry picked from commit 33c5d81)
If epoll_wait() reports EPOLLHUP, we must respond immediately and
unregister the event or else Dispatch will go into a spinloop.

This makes dispatch_io_pipe_close (swiftlang#476) pass on Linux with identical
output to Darwin.

(cherry picked from commit ffc7133)
@weissi
Copy link
Contributor Author

weissi commented May 14, 2019

@swift-ci please test

@weissi weissi requested review from ktopley-apple and kevints May 14, 2019 10:30
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.

3 participants