event: Fix reset of non eventfd winpr event
(cherry picked from commit b7c4ec759f
)
This commit is contained in:
Родитель
65042d308f
Коммит
9858e08315
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче