You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Lwt_unix there is val socket : socket_domain -> socket_type -> int -> file_descr.
In Unix there is val socket : ?cloexec:bool -> socket_domain -> socket_type -> int -> file_descr.
The unix wrapper should expose the cloexec parameter.
The text was updated successfully, but these errors were encountered:
In the Lwt_unix module, add `?cloexec:bool` optional arguments to
functions that create file descriptors (`dup`, `dup2`, `pipe`,
`pipe_in`, `pipe_out`, `socket`, `socketpair`, `accept`, `accept_n`).
The `?cloexec` argument is simply forwarded to the wrapped Unix
function (with OCaml >= 4.05, see [ocaml/ocaml#650][650]), or emulated
as best-effort with `Unix.set_close_on_exec` on older OCaml versions.
Fixocsigen#327. Fixocsigen#847. See also ocsigen#872.
[650]: ocaml/ocaml#650
In the Lwt_unix module, add `?cloexec:bool` optional arguments to
functions that create file descriptors (`dup`, `dup2`, `pipe`,
`pipe_in`, `pipe_out`, `socket`, `socketpair`, `accept`, `accept_n`).
The `?cloexec` argument is simply forwarded to the wrapped Unix
function (with OCaml >= 4.05, see [ocaml/ocaml#650][650]), or emulated
as best-effort with `Unix.set_close_on_exec` on older OCaml versions.
Fixocsigen#327. Fixocsigen#847. See also ocsigen#872.
[650]: ocaml/ocaml#650
In
Lwt_unix
there isval socket : socket_domain -> socket_type -> int -> file_descr
.In
Unix
there isval socket : ?cloexec:bool -> socket_domain -> socket_type -> int -> file_descr
.The unix wrapper should expose the cloexec parameter.
The text was updated successfully, but these errors were encountered: