5 Feb
2025
5 Feb
'25
10:44 a.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7236#note_93698