https://issues.dlang.org/show_bug.cgi?id=14868
Dmitry Olshansky <dmitry.o...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmitry.o...@gmail.com --- Comment #6 from Dmitry Olshansky <dmitry.o...@gmail.com> --- ~this() { unmap(); errnoEnforce(fd == -1 || fd <= 2 || .close(fd) != -1, "Could not close handle"); } enforce internally throws exception so calling it in finalizer is baaad idea with current non-reentrant GC. --