6 Sep
2024
6 Sep
'24
3:26 p.m.
Nikolay Sivov (@nsivov) commented about dlls/ntdll/unix/system.c:
+ fd = open(filename, O_RDONLY | O_NONBLOCK); + if (fd < 0) + goto done; + + rc = fstat(fd, &stat_info); + if (rc < 0 || stat_info.st_size == 0) + goto done; + +try_read_attributes: + ssz = read(fd, attrib, 4); + if (ssz < 0) + { + if (errno == EAGAIN || errno == EINTR) + goto try_read_attributes; + goto done; + } I'd rather returned error instead of retrying.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6423#note_81374