Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows, fix stdin broken-pipe and blocking domain. Issues #793 and #792. #795

Merged

Conversation

bdodrem
Copy link
Contributor

@bdodrem bdodrem commented Jan 25, 2025

Hi,

The purpose of this pull request is to

@talex5 talex5 force-pushed the windows_read-stdin__issue_793_and_792 branch from bf3c248 to 69098d1 Compare January 27, 2025 11:43
Copy link
Collaborator

@talex5 talex5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thanks!

/cc @patricoferris, who added the cstruct stubs file

* fix blocking issue on Windows : issue ocaml-multicore#793.
      Adding await_readable before reading fd

* fix broken pipe exception : issue ocaml-multicore#792.
      Use Unix.read_bigarray instead of Unix_cstruct.read

* replace eio_windows_cstruct_stubs.c by Unix functions.
     Since OCaml 5.2, Unix.read_bigarray and Unix.write_bigarray can be used.
@talex5 talex5 force-pushed the windows_read-stdin__issue_793_and_792 branch from 69098d1 to d3cb04a Compare January 27, 2025 12:04
@talex5
Copy link
Collaborator

talex5 commented Jan 27, 2025

I also bumped the minimum OCaml version to 5.2, since this PR needs it.

@talex5 talex5 merged commit 8f7f82d into ocaml-multicore:main Jan 27, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants