vanilla
vanilla copied to clipboard
Test reclose off reused fd
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.
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?