robur-coop / miou

A simple scheduler for OCaml 5
https://docs.osau.re/miou/index.html
MIT License
93 stars 7 forks source link

Be able to finalise correctly ressources allocated by the events function when the domain stop #37

Closed dinosaure closed 3 months ago

dinosaure commented 3 months ago

It's a file-descriptor leak spotted when we do a lot of Miou_unix.run (which is not the usual usage). However, it seems that the Gc.finalise does not work properly (or it never triggered). It seems that we must use the clean at the shutdown option (eg. OCAMLRUNPARAM=c) to be sure that everything (including finalisers) is cleaned but we should not impose to the user to use every-time this option.