mirror of
https://github.com/janet-lang/janet
synced 2026-05-17 19:02:16 +00:00
32d75c9e49
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.