Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_data_device.c:
- end_time = NtGetTickCount() + receive_timeout;
- do
- {
if (poll_until(fd, POLLIN | POLLHUP, end_time) <= 0) goto out;
nread = read(fd, buffer + total, buffer_size - total);
if (nread == -1 && errno != EINTR)
{
TRACE("failed to read from fd (errno: %d)\n", errno);
total = 0;
goto out;
}
else if (nread > 0)
{
total += nread;
Same question here.