mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:49:06 +02:00
* fixed WASI bug in do_read, where the result of the __wasi_fd_read syscall function was ignored
This commit is contained in:
parent
977b2f2a4b
commit
09e61201d2
@ -101,7 +101,7 @@ begin
|
|||||||
repeat
|
repeat
|
||||||
our_iov.buf:=Addr;
|
our_iov.buf:=Addr;
|
||||||
our_iov.buf_len:=Len;
|
our_iov.buf_len:=Len;
|
||||||
__wasi_fd_read(Handle,@our_iov,1,@our_nread);
|
res:=__wasi_fd_read(Handle,@our_iov,1,@our_nread);
|
||||||
until (res=__WASI_ERRNO_SUCCESS) or ((res<>__WASI_ERRNO_INTR) and (res<>__WASI_ERRNO_AGAIN));
|
until (res=__WASI_ERRNO_SUCCESS) or ((res<>__WASI_ERRNO_INTR) and (res<>__WASI_ERRNO_AGAIN));
|
||||||
if res=__WASI_ERRNO_SUCCESS then
|
if res=__WASI_ERRNO_SUCCESS then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user