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

--enable-libev not safe to use with fork #168

Closed
edwintorok opened this issue Jul 1, 2015 · 1 comment
Closed

--enable-libev not safe to use with fork #168

edwintorok opened this issue Jul 1, 2015 · 1 comment

Comments

@edwintorok
Copy link
Contributor

Even if I call Lwt_unix.fork applications sometimes segfault when libev is used with OCaml 4.02.2.
libev needs some special functions called to work correctly after a fork:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#The_special_problem_of_fork

There is also something wrong with using OpenSSL and fork with OCaml 4.02.2 , everything fine on 4.02.1 and 4.01.0.

I'll try to create a testcase to show this.

@edwintorok
Copy link
Contributor Author

Turns out this was a bug in OCaml 4.02.2, the patch from here fixes the problem: http://caml.inria.fr/mantis/view.php?id=6919

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

1 participant