lwt icon indicating copy to clipboard operation
lwt copied to clipboard

Support `Lwt_process` in multi-domain settings

Open raphael-proust opened this issue 2 years ago • 1 comments

Currently, calling Lwt_process functions cause calls to Lwt_unix.fork which fail in case where multiple domains have been started. It should be possible to use a spawn function instead of a fork to support Lwt_process.

See details in:
Originally posted by @EduardoRFS in https://github.com/ocsigen/lwt/issues/923#issuecomment-1167203901

raphael-proust avatar Jun 30 '22 09:06 raphael-proust

See also, Lwt_process relies on Unix.execve, which is not safe to call in a multi-threaded environment either, as it may end up trying to allocate memory which is not async-signal-safe: https://discuss.ocaml.org/t/deprecation-of-lwt-unix-set-default-async-method/10791/6?u=edwin

edwintorok avatar Nov 14 '22 20:11 edwintorok