mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
poll: fix issue with revents being 0
This commit is contained in:
@@ -145,7 +145,7 @@ void poll_event(pollheader_t *header, int events) {
|
||||
insertinheader(header, iterator);
|
||||
}
|
||||
|
||||
if (desc->event == NULL) {
|
||||
if (desc->event == NULL && revents) {
|
||||
iterator->revents = revents;
|
||||
desc->event = iterator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user