Fix for blocking reads

This commit is contained in:
Bruce Hill 2024-11-04 01:37:51 -05:00
parent 8b619fdef0
commit 20096c8e81

View File

@ -315,9 +315,6 @@ public OptionalArray_t Path$read_bytes(Path_t path, OptionalInt_t count)
memcpy(&content[len], chunk, (size_t)just_read);
len += (size_t)just_read;
if ((size_t)just_read < sizeof(chunk))
break;
}
close(fd);
if (count.small != 0 && (int64_t)len < target_count)