top | item 38914828

(no title)

corsix | 2 years ago

close() is documented as a cancellation point, and is the kind of syscall that might crop up in a destructor.

discuss

order

otabdeveloper4|2 years 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.)