Skip to content

Properly pick up new events when reusing a muxnote #305

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 1 commit into from
Sep 21, 2017

Conversation

jblache
Copy link
Contributor

@jblache jblache commented Sep 21, 2017

Changes for SR-5759 introduced a bug where disarmed events got dropped when
a muxnote is reused, due to erroneously setting dmn->dmn_events to the
combination of new events and currently armed events.

Combining existing events with the combination of new events and armed events
implements the intended behavior.

Changes for SR-5759 introduced a bug where disarmed events got dropped when
a muxnote is reused, due to erroneously setting dmn->dmn_events to the
combination of new events and currently armed events.

Combining existing events with the combination of new events and armed events
implements the intended behavior.
@jblache jblache requested a review from MadCoder September 21, 2017 01:59
@@ -270,7 +270,7 @@ _dispatch_unote_register(dispatch_unote_t du,
if (_dispatch_epoll_update(dmn, events, EPOLL_CTL_MOD) < 0) {
dmn = NULL;
} else {
dmn->dmn_events = events;
dmn->dmn_events |= events;
Copy link
Contributor

Choose a reason for hiding this comment

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

🤦‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

you gotta love 1-character fixes

@MadCoder
Copy link
Contributor

@swift-ci please test

@MadCoder
Copy link
Contributor

Seems the buildbot is broken, however the fix is obviously correct, so let's merge.

@MadCoder MadCoder merged commit 295f676 into master Sep 21, 2017
ktopley-apple pushed a commit that referenced this pull request Dec 6, 2018
Properly pick up new events when reusing a muxnote

Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
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