Hacker News new | ask | show | jobs
by otabdeveloper4 899 days ago
Indeed a tricky point, but like I said - move these objects to another garbage collection thread and call close() there.

(You probably want to do this regardless, because close() is not actually always an instanteneous syscall and can take a long time.)