Skip to content

Commit 13b2150

Browse files
committed
Properly pick up new events when reusing a muxnote
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.
1 parent 947b51c commit 13b2150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event/event_epoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ _dispatch_unote_register(dispatch_unote_t du,
270270
if (_dispatch_epoll_update(dmn, events, EPOLL_CTL_MOD) < 0) {
271271
dmn = NULL;
272272
} else {
273-
dmn->dmn_events = events;
273+
dmn->dmn_events |= events;
274274
dmn->dmn_disarmed_events &= ~events;
275275
}
276276
}

0 commit comments

Comments
 (0)