vanilla icon indicating copy to clipboard operation
vanilla copied to clipboard

Test reclose off reused fd

Open cablehead opened this issue 10 years ago • 1 comments

Test: have a fd, close. get new fd from os, os hands us the previous fd closed, as its the current lowest fd available. The old user of fd calls close again - which closes the newly open fd.

cablehead avatar Mar 31 '15 18:03 cablehead

This fixes for sockets: https://github.com/cablehead/vanilla/commit/6807bc7fb9de401868c120c4fad02969322756ac

Still need to handle of plain file handles. Should think through again. Why is closed getting called twice?

cablehead avatar Mar 31 '15 18:03 cablehead