Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/wayland_data_device.c:
- end_time = NtGetTickCount() + timeout;
- while (nwritten < count)
- {
if (poll_until(fd, POLLOUT, end_time) <= 0) break;
ret = write(fd, (const char*)buf + nwritten, count - nwritten);
if (ret == -1 && errno != EINTR && errno != EAGAIN && errno != EWOULDBLOCK)
{
break;
}
else if (ret > 0)
{
nwritten += ret;
}
- }
Why do we need to do all this already (timeouts)? I think it would be much better if it could be avoided entirely.