mirror of
https://github.com/janet-lang/janet
synced 2026-03-05 15:29:52 +00:00
For unclosable files, no need to dup, but for closable files we can get a resource leak. Valgrind and similar tools won't catch this but IO will unexpectedly start going to the wrong descriptor if a file was transferred to a new thread, closed, and then a new file was created.