Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Lwt_io.read fails on Windows with EPIPE #20

@talex5

Description

@talex5

I'm trying to read the output from GPG. It works on Linux but not on Windows. Here's a simple test case:

let () =
  let out = Lwt_main.run (Lwt_process.pread ("", [| "gpg"; "--version" |])) in
  print_endline ("Got: " ^ out)

On Linux:

Got: gpg (GnuPG) 2.0.21
...

On Windows (Windows 7, OCaml 4.00.1, LWT 2.4.3, MinGW 32-bit):

Fatal error: exception Unix.Unix_error(31, "bytes_read", "")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions