https://issues.dlang.org/show_bug.cgi?id=14868

Dmitry Olshansky <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Dmitry Olshansky <[email protected]> ---
~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.

--

Reply via email to