Merge pull request #6969 from mfleisz/fix_event_reset

event: Fix reset of non eventfd winpr event
This commit is contained in:
David Fort 2021-04-20 14:46:15 +02:00 committed by GitHub
commit ec6b11c537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ BOOL winpr_event_reset(WINPR_EVENT_IMPL* event)
ret = eventfd_read(event->fds[0], &value);
#else
char value;
ret = read(event->fds[1], &value, 1);
ret = read(event->fds[0], &value, 1);
#endif
} while (ret < 0 && errno == EINTR);
} while (ret >= 0);