OCaml 4.05 adds an optional cloexec
parameter to several Unix functions, allowing the close-on-exec flag to be set as the operation is performed atomically on some platforms (limited to Linux atm.) -- otherwise there's a race condition when there are multiple (system) threads.
These functions would be affected: Lwt_unix.dup
, dup2
, pipe
, socket
, socketpair
, accept
.
Other functions that build on them and could also take ?cloexec
: accept_n
, pipe_in
, pipe_out
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4