ocaml-fileutils icon indicating copy to clipboard operation
ocaml-fileutils copied to clipboard

Silence exceptions raised when closing after an exception in FileUtilCP

Open toots opened this issue 1 year ago • 0 comments

We're seeing reports of an error with a backtrace that cannot be used because a subsequent Unix.close erases the original exception. See: https://github.com/savonet/liquidsoap/issues/3732

This PR makes the close silent and preserves the original backtrace when re-raising the exception.

toots avatar Feb 11 '24 00:02 toots