Skip to content

Commit 30756b3

Browse files
committed
writing with error is fully operational
1 parent 25b9f46 commit 30756b3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • libc-bottom-half/cloudlibc/src/libc/unistd

libc-bottom-half/cloudlibc/src/libc/unistd/write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ ssize_t write(int fildes, const void *buf, size_t nbyte) {
8888
return amount;
8989
} else {
9090
wasip3_subtask_block_on(write_end->subtask);
91+
write_end->subtask = WASIP3_SUBTASK_RETURNED;
9192
if (write_end->pending_result.is_err) {
9293
translate_error(write_end->pending_result.val.err);
9394
return -1;

0 commit comments

Comments
 (0)