ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
548 stars 66 forks source link

Raise an exception instead of Failure "execve: Argument list too long" #561

Open Innf107 opened 1 year ago

Innf107 commented 1 year ago

Fix #556

talex5 commented 1 year ago

This string matching looks a bit fragile (OS/locale dependent). Perhaps we should get action_execve to output errno and just match on that (e.g. execve:7:...)?

strerrorname_np is GNU-specific, but we can use caml_unix_error_of_code to convert integer codes to OCaml values.