Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Lwt_process in multi-domain settings #959

Open
raphael-proust opened this issue Jun 30, 2022 · 1 comment
Open

Support Lwt_process in multi-domain settings #959

raphael-proust opened this issue Jun 30, 2022 · 1 comment

Comments

@raphael-proust
Copy link
Collaborator

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 #923 (comment)

@edwintorok
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants